Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
OCI ロギングでカスタム・ログを収集する
Search
yukitkns
February 20, 2024
Programming
910
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
OCI ロギングでカスタム・ログを収集する
yukitkns
February 20, 2024
More Decks by yukitkns
See All by yukitkns
Let's EncryptでSSL証明書を自動更新
yukitkns
1
74
OCI Stack Monitoringでリソース監視をする
yukitkns
1
1k
WAFログの推奨ルールを確認する
yukitkns
0
66
多段接続について
yukitkns
0
83
「寺子屋Oracle Cloud:Win Story研究会『ハイブリッドクラウド・マルチクラウド』」に参加してみて
yukitkns
1
200
開発未経験者がはじめて DevOpsを触ってみた
yukitkns
0
200
「寺子屋Oracle Cloud:Win Story研究会『OCVSのリフト案件』」に参加してみて
yukitkns
0
210
ここがスゴいよ、OCM!!
yukitkns
1
180
Other Decks in Programming
See All in Programming
複雑なUIコンポーネントとの ⻑い付き合い⽅:波及するバグからテスト戦略を経て、安全な再設計へ
mixplace
0
490
contenteditable と日本語入力に向き合う
colorful12
0
230
[2026-10-14](C)Re:ゼロから始める異世界生活〜始まりの終わりと終わりの始まり〜
tosite
0
180
graphql-ruby を Spinel で速くしようとした話
mtsmfm
0
130
Long Living Tokens, Die, Die, Die! (or: The One Ring is Banned in Modern)
sylph01
0
390
AIが生成したコードは読むべきか?抽象化設計とコードの品質保証 / abstraction-design-and-quality
minodriven
12
7.7k
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
500
[JA] Domain Modeling with Vanilla Rails: 「操作」から再考するRailsの設計論
yasaichi
4
1.4k
PumaからFalconに移行したRailsアプリケーションでの実践
falcon8823
0
300
JIS keyboard support in Omarchy
lef237
0
170
Vapor Mode でアクセシビリティは 壊れないか検証した話
fuqda
1
280
Apple Intelligenceとオンデバイス時代の到来
yahir0
0
170
Featured
See All Featured
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
230
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.4k
HDC tutorial
michielstock
2
990
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
540
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
460
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
330
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
910
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
590
Joys of Absence: A Defence of Solitary Play
codingconduct
1
560
Transcript
「OCI ロギングでカスタム・ログを収集する」 株式会社 CLOUDII 高梨 祐樹 1
⾃⼰紹介 y.takanashi 「Cloudii ブログ」で検索︕ @yukitkns_ yukitkns yukitkns ⾼梨 祐樹 株式会社
Cloudii クラウドエンジニア 2
半年で3回⽬の登壇︕ 3 2023年9⽉ #44 「夏休みの⾃由研究振り返り&セキュリティ特集」 2023年12⽉ #47 「2023忘年LT⼤会」
本⽇の内容 4 https://cloudii.jp/news/blog/oracle-cloud/custom-log/
当ブログの構成について lカスタム・ログの作成 lIAMユーザー、IAMグループ、ポリシーの作成 lRPMファイルの取得 lエージェントの導⼊ l認証情報の配置 lカスタム・ログの作成 lカスタム・ログの設定変更 l設定変更 l動作確認
今回はこちらのみをご紹介︕ 5
設定変更の全体地図 OCIのロギングの設定変更後、⼿動で内容更新をできるようになること OCI ロギング OS OCI ロギング ︖ ファイル・パスを 「/var/log/*」→
「/var/log/messages」 に変更 「/var/log/messages」 のログが表⽰ 6
デモの環境 lブログ内の環境と同構成を採⽤ l対象リソース︓OCIのコンピュート・インスタンス lOS︓Oracle Linux 9 lシェイプ・タイプ︓VM.Standard.E5.Flex l⽂字コード︓UTF-8 ※デモのため、FWはオールパスのルールを使⽤ 7
作業に⼊ります︕💪 8
1︓エージェントの「編集」を選択 9
2:任意のパス(ここでは 「/var/log/messages」)に変更 10
3:エージェントのステータスが「更新中」→ 「アクティブ」に遷移後、設定が変更される。 11
4:以下のログが出⼒されている事を確認 ljournalctl -u unified- monitoring- agent_config_downloader. service l <source>内のpath︓収集対象のファイ ル・パス
※設定変更後のファイル・パスになっている事を 確認 l fluentd outputが"true"︓Fluentdへ の出⼒が完了 ※"false"と表⽰される場合は、エージェント構 成の設定が間違っている可能性が⾼く、構成の ⾒直しを推奨 12
5:以下のコマンドで、 Fluentdの設定内容を確認 lcat /etc /unified-monitoring- agent/conf.d/fluentd_config/fluentd.conf l<source>内の「path」が変更後のファイル・パスとして表⽰されることを確認 13
6:以下のコマンドでunified-monitoring- agent.serviceの再起動を実⾏ lsudo systemctl restart unified-monitoring-agent.service 14
7. /var/log/unified-monitoring-agent/unified- monitoring-agent のログを確認 l/var/log/unified- monitoring-agent/unified- monitoring-agent l file DEFAULT_CONFIG_FILE,
<認証 ファイルを格納しているパス>︓認証情報が配 置されているパスを表⽰ l <source>内のpath︓収集対象のファイル・ パス ※設定変更後のファイル・パスになっている事を 確認 l following tail of /var/log /messages︓ファイル・パスで設 定したログの収集を開始 15
8.以下のコマンドで /var/log/messages にログを出⼒。 llogger "This is a test message." 16
9. /var/log/unified-monitoring-agent/unified- monitoring-agent のログを再度確認 l以下のログが出⼒されている事を確認 lput_logs request with log_object_id <収集したログのOCID>︓収集したログを
カスタム・ログに転送 lresponse 200 id︓転送が成功 17
10. カスタム・ログにloggerコマンドで出⼒したログが表⽰され、 設定変更が完了となる 18
設定変更の全体地図 OCIのロギングの設定変更後、⼿動で内容更新をできるようになること OCI ロギング OS OCI ロギング 1.unified-monitoring- agent_config_downloader.service を起動
2.unified-monitoring- agent_config_downloader.service のログを確認 3./etc/unified-monitoring-agent/conf.d/ fluentd_config/fluentd.conf を確認 4.unified-monitoring-agent.serviceを再起動 5.unified-monitoring-agent のログを確認 6.カスタム・ログに変更内容後のログが出⼒され、設定変更が完了 ファイル・パスを 「/var/log/*」→ 「/var/log/messages」 に変更 「/var/log/messages」 のログが表⽰される 19
ご清聴いただきありがとうございました。👏 20