# The following label is to ignore Fluentd warning events. @type tail @id in_tail_syslog multiline_flush_interval 5s path /var/log/messages* pos_file /var/log/messages*.log.pos read_from_head true path_key tailed_path tag oci.syslog @type multiline format_firstline /^\S+\s+\d{1,2}\s+\d{1,2}:\d{1,2}:\d{1,2}\s+/ format1 /^(?.*)/ @type tail @id in_tail_apacheError path /var/log/apacheError.log pos_file /var/log/fluentd-apacheError.log.pos read_from_head true path_key tailed_path tag oci.apacheError @type none @type tail @id in_tail_kafka path /var/log/kafka.log pos_file /var/log/fluentd-kafka.log.pos read_from_head true path_key tailed_path tag oci.kafka @type json @type record_transformer enable_ruby true oci_la_global_metadata ${{key1: value1, key2:value2}} oci_la_entity_id LOGGING_ANALYTICS_ENTITY_OCID # If same across sources. Else keep this in individual filters oci_la_entity_type LOGGING_ANALYTICS_ENTITY_TYPE # If same across sources. Else keep this in individual filters @type record_transformer enable_ruby true oci_la_metadata ${{key1: value1, key2:value2}} oci_la_log_source_name LOGGING_ANALYTICS_SOURCENAME oci_la_log_group_id LOGGING_ANALYTICS_LOGGROUP_OCID oci_la_log_path "${record['tailed_path']}" tag ${tag} @type record_transformer enable_ruby true oci_la_metadata ${{key1: value1, key2:value2}} oci_la_log_source_name LOGGING_ANALYTICS_SOURCENAME oci_la_log_group_id LOGGING_ANALYTICS_LOGGROUP_OCID oci_la_log_path "${record['tailed_path']}" tag ${tag} @type record_transformer enable_ruby true oci_la_metadata ${{key1: value1, key2:value2}} oci_la_log_source_name LOGGING_ANALYTICS_SOURCENAME oci_la_log_group_id LOGGING_ANALYTICS_LOGGROUP_OCID oci_la_log_path "${record['tailed_path']}" message ${record["log"]} # Will assign the 'log' key value from json wrapped message to 'message' field tag ${tag} @type oci-logging-analytics namespace # Auth config file details config_file_location ~/.oci/config profile_name DEFAULT # Configuration for plugin (oci-logging-analytics) generated logs plugin_log_location /var/log plugin_log_level info # Buffer Configuration @type file Path /var/log retry_forever true disable_chunk_backup true