# The following label is to ignore Fluentd warning events.
@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 ${{: , :}}
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']}"
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