[New post] Ingesting Logs into OCI Logging Analytics (via Agent Based Deployment)
Tam Nguyen posted: " Logs are often voluminous and is a gold mine of valuable data to help administrators troubleshoot and identify issues or trends for database operational activities. Bringing that data into OCI Logging Analytics will allow administrators to get quick insi"
Logs are often voluminous and is a gold mine of valuable data to help administrators troubleshoot and identify issues or trends for database operational activities. Bringing that data into OCI Logging Analytics will allow administrators to get quick insights, to reduce the time to isolate issues minimising downtime and impact to end users.
OCI Logging Analytics supports both Oracle and Heteregenous (Non-Oracle, Third Party) log sources. For details on the Out of box Logs Sources we support please see here:
NOTE: We will continue to grow the the Out of Box Log Parsers and Sources as demand grows. Alternatively if you have a bespoke or log parser or source we have not yet defined, you can create your own custom one.
To bring logs into OCI Logging Analytics, the Management Agent software OS owner "mgmt_agent" will need to have access to read the logs owned by another OS user (eg. oracle)
In this example I will show you how you can achieve this to enable log ingestion for the Oracle Database Alert Log Source into OCI Logging Analytics.
2. Search for "Database Alert" and Drill into the "Database Alert Logs"
3. Click on the "Unassociated Entities"
4. Check the box for your database entity and click on "Check Association"
5. Then choose the Log Group Compartment where you want to place the Logs that will be ingested and Specify the Log Group you want to store logs. Then click on "Submit"
NOTE: If you don't have a Log Group created, click "Create Log Group" to create.
6. Return to "Associated Entities" to confirm the Database Entity is now associated.
7. Wait until association is completed and the status show as "Success"
8. Navigate to the "Agent Collection Warnings" page and validate there are no errors or issue reported.
9. Navigate from the menu to Log Explorer
10.Change the time period to "Last 7 Days" and filter on the Log Source for "Database Alert Logs" to confirm logs are now getting ingested into OCI Logging Analytics.
Filter: 'Log Source' = 'Database Alert Logs' | stats count as logrecords by 'Log Source' | sort -logrecords
6 - UNCOVER POTENTIAL ISSUES IN LOGS
1. Navigate to: Visualisations and click on the Cluster icon
2. The following will show you a group of common patterns grouped together known as "Clusters". Now navigate to "Potential Issues" tab
3. The following Potential Issues are listed for you to resolve.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.