# 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 record_transformer
enable_ruby true
oci_la_global_metadata ${{: , :}}
oci_la_entity_id # If same across sources. Else keep this in individual filters
oci_la_entity_type # If same across sources. Else keep this in individual filters
@type record_transformer
enable_ruby true
oci_la_metadata ${{: , :}}
oci_la_log_source_name
oci_la_log_group_id
oci_la_log_path "${record['tailed_path']}"
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