@type http
@log_level error
@id input_http_ipv4
port 9000
bind 0.0.0.0
</source>
<source>
@type http
@log_level error
@id input_http_ipv6
port 9000
bind ::
</source>
<filter pmdata>
@type record_transformer
enable_ruby
<record>
date ${ require 'date'; DateTime.rfc3339(record["measurement_time"]).strftime('%Y-%m-%d') }
</record>
</filter>
<filter fmdata>
@type record_transformer
enable_ruby
<record>
date ${ require 'date'; DateTime.rfc3339(record["alarm_time"]).strftime('%Y-%m-%d') }
</record>
</filter>
<filter {*security_logs*,*debug_logs*,*LI_logs*,*audit_logs*}>
@type record_transformer
enable_ruby
<record>
date ${ require 'date'; DateTime.rfc3339(record["log_event_time_stamp"]).strftime('%Y-%m-%d') }
</record>
</filter>
<filter fmdata>
@type elasticsearch_genid
hash_id_key _hash
</filter>
<filter pmdata>
@type elasticsearch_genid
hash_id_key _hash
</filter>
<filter {*security_logs*,*debug_logs*,*LI_logs*,*audit_logs*}>
@type elasticsearch_genid
hash_id_key _hash
</filter>
<match pmdata>
@type copy
<store>
<buffer tag, date, dnf_name>
@type file
@log_level error
path /data/fluentdlogs/pm
timekey 1d
flush_thread_count 4
chunk_limit_size 4MB
overflow_action block
flush_mode interval
flush_interval 5s
total_limit_size 1GB
</buffer>
@type elasticsearch
@log_level error
index_name ${tag}-${dnf_name}-${date}
type_name pm_data
host elasticsearch
port 9200
id_key _hash # specify same key name which is specified in hash_id_key
remove_keys _hash # Elasticsearch doesn't like keys that start with _
logstash_format false
bulk_message_request_threshold 5M
request_timeout 30s
reconnect_on_error true
reload_on_failure true
reload_connections false
</store>
</match>
<match fmdata>
@type copy
<store>
<buffer tag, date, dnf_name>
@type file
@log_level error
path /data/fluentdlogs/fm
timekey 1d
flush_thread_count 4
chunk_limit_size 4MB
overflow_action block
flush_mode interval
flush_interval 5s
total_limit_size 2GB
</buffer>
@type elasticsearch
@log_level error
index_name ${tag}-${dnf_name}-${date}
type_name fm_data
host elasticsearch
port 9200
id_key _hash # specify same key name which is specified in hash_id_key
remove_keys _hash # Elasticsearch doesn't like keys that start with _
logstash_format false
bulk_message_request_threshold 5M
request_timeout 30s
reconnect_on_error true
reload_on_failure true
reload_connections false
</store>
</match>
<match {*security_logs*,*debug_logs*,*LI_logs*,*audit_logs*}>
@type copy
<store>
<buffer tag, date, facility, dnf_name>
@type file
@log_level error
path /data/fluentdlogs/logs
timekey 1d
flush_thread_count 4
chunk_limit_size 4MB
overflow_action block
flush_mode interval
flush_interval 5s
total_limit_size 5GB
</buffer>
@type elasticsearch
@log_level error
index_name ${tag}-${facility}-${dnf_name}-${date}
type_name logs_data
host elasticsearch
port 9200
id_key _hash # specify same key name which is specified in hash_id_key
remove_keys _hash # Elasticsearch doesn't like keys that start with _
logstash_format false
bulk_message_request_threshold 5M
request_timeout 30s
reconnect_on_error true
reload_on_failure true
reload_connections false
</store>
</match>