Pushing Big Data Service Logs to OCI Logging Service
Creating Custom Log Group and Log
- Create a log group. For example, test_bds_log_group. For more information, see Create Log Groups to Store Your Logs.
- Create custom log. For example, test_bds_hadoop_log. For more information, see Creating Custom Logs.
Creating Agent Configuration
- Create agent configuration. For example, test_bds_hadoop_log_age. For more information, see Creating an Agent Configuration.
- Set the following fields for Big Data Service:
- Change host groups to use dynamic group.
- Select dynamic group created in the previous task.
- Select Log Path as input type.
- Give input name. For example,
hadoop-log
. - Give absolute file or folder path of the log source. For example,
/var/log/hadoop/hdfs/*
. - In the log destination, select the log group and log name created in the previous task.
- Click Create.
- To immediately consume the changes in Big Data Service nodes, complete the following:
- Restart UMA agent downloader service in all the nodes. From any node run:
dcli systemctl restart unified-monitoring-agent_config_downloader.service
-
Restart UMA agent in all the nodes. From any node run:
dcli systemctl restart unified-monitoring-agent.service
- Restart UMA agent downloader service in all the nodes. From any node run:
- Open the navigation menu and select Observability & Management. Under Logging, select Logs.
To troubleshoot a log not appearing, see Troubleshooting Logging.