Set Up Continuous Log Collection From Your Hosts
To continuously collect log data from your entities, install the Management Agent on your host. Before that, ensure that you have completed the prerequisite tasks for using the Management Agents.
Here’s the typical workflow of the tasks that must be performed for setting up continuous log collection:
Task | More Information |
---|---|
Create the required IAM policies | Allow Continuous Log Collection Using Management Agents |
Ensure that the management agent has the correct privileges to read the log files | Grant READ Access of the Logs to the Agent User on Your Host |
Install Management Agents on your log-emitting hosts | Install Management Agents |
Optionally, to create a single point of communication between the Management Agents and the Oracle Cloud Infrastructure, install Management Gateway. | Workflow for Installing Management Gateway |
Check if the entity already exists for your use case. For example,
when the Management Agent is enabled on a compute instance, related host and agent
entities are automatically created. If not, then create an entity.
The type of the entity that you select or create must match the entity type specified in the Source. |
Create an Entity to Represent Your Log-Emitting Resource |
Check if any of the available Oracle-defined parsers and sources are suitable for parsing and collecting your logs by examining their parameters. If not, then create them. | Create a Parser and Create a Source |
Associate the entity with the source | Configure New Source-Entity Association |
Check if there are warnings during log collection, and work on the fix | View Agent Collection Warnings |
View the agent collection metrics | Monitor Your Continuous Log Collection |
Useful Additional Information:
The above workflow is generic in nature. For end-to-end steps to set up continuous log collection for the supported sources types, see:
Source Type | More Information |
---|---|
File |
Ingest Application, Infrastructure, Database and Other Generic Logs |
Syslog Listener |
Set Up Syslog Monitoring |
Database |
Set Up Database Instance Monitoring |
REST API |
Set Up REST API Log Collection |
Microsoft Windows |
Set Up Windows Event Monitoring |
Oracle Diagnostic Logging (ODL) |
Ingest Logs of Oracle Diagnostic Logging (ODL) Format |