Fluentd - Configuration for Hipaa Bucket : Each Match
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
This was the first -- Fluentd configuration with Folder creates
dd/mm/yyyy
messages
secure
kern
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<source>
@type syslog
@id input_syslog
port 4889
bind 0.0.0.0
<transport tcp>
</transport>
<parse>
@type syslog
with_priority false
message_format auto
</parse>
emit_unmatched_lines true
severity_key message_severity
source_address_key source_address
tag oci.0.8x8.vo.dev.os.syslog.*
</source>
<source>
@type tail
# @id input_tail_audit
path /var/log/audit/audit.log
pos_file /var/lib/fluent_oci_outplugin/pos/audit.pos
pos_file_compaction_interval 24h
enable_watch_timer true
enable_stat_watcher true
follow_inodes true
<parse>
# @type json
@type none
</parse>
tag oci.0.8x8.vo.dev.os.audit.*
</source>
<source>
@type tail
@id input_tail_go-audit
path /var/log/go-audit/go-audit.log
pos_file /var/lib/fluent_oci_outplugin/pos/go-audit.pos
pos_file_compaction_interval 24h
enable_watch_timer true
enable_stat_watcher true
follow_inodes true
<parse>
@type json
</parse>
tag oci.0.8x8.vo.dev.os.go-audit.*
</source>
<source>
@type tail
path /var/log/secure
pos_file /var/lib/fluent_oci_outplugin/pos/secure.pos
pos_file_compaction_interval 24h
enable_watch_timer true
enable_stat_watcher true
follow_inodes true
<parse>
@type none
</parse>
tag oci.0.8x8.vo.dev.os.secure.*
</source>
<source>
@type tail
path /var/log/messages
pos_file /var/lib/fluent_oci_outplugin/pos/messages.pos
pos_file_compaction_interval 24h
enable_watch_timer true
enable_stat_watcher true
follow_inodes true
<parse>
@type none
</parse>
tag oci.0.8x8.vo.dev.os.messages.*
</source>
<source>
@type tail
path /var/log/kern.log
pos_file /var/lib/fluent_oci_outplugin/pos/kern.pos
pos_file_compaction_interval 24h
enable_watch_timer true
enable_stat_watcher true
follow_inodes true
<parse>
@type none
</parse>
tag oci.0.8x8.vo.dev.os.kern.*
</source>
<filter tag oci.0.8x8.vo.dev.os.go-audit.**>
@type go_audit_parser
@id go-audit.parser
</filter>
<filter oci.0.8x8.vo.dev.os.**>
@type record_transformer
enable_ruby false
<record>
hostname "#{Socket.gethostname}"
host "compute73-cc"
fqdn "compute73-cc.8x8hosts.pilot"
osDistribution "CentOS"
osMajorVersion "7"
logSource "OSAuditSyslog"
businessUnit "vo"
environment "development"
securityCompliance "SOC2"
tag ${tag}
</record>
</filter>
<match oci.0.8x8.vo.dev.os.syslog.**>
@type copy
<store>
@type s3
aws_key_id e577cbec64dad7f892683dbde024fc0a077f4b5d
aws_sec_key fyGrYtUUdUuK9uIY9/4aH/09/bjFnu4GgW9wjiCdvwA=
s3_bucket idxixi5bmstw
s3_region us-sanjose-1
s3_endpoint https://idxixi5bmstw.compat.objectstorage.us-sanjose-1.oraclecloud.com
path HIPAA_Logs_Bucket/${environment}/${fqdn}/%F/syslogs/
s3_object_key_format %{path}%{time_slice}_%{index}.%{file_extension}
check_apikey_on_start false
ssl_verify_peer false
check_bucket false
<buffer tag,time,oci_la_log_source_name,hostIpAddress,logName,environment,fqdn,businessUnit>
@type file
tag ${tag}
path /var/log/fluent_oci_outplugin/buffer/3/syslogs/
timekey 120 # (default 3600) 1 hour partition
timekey_wait 10s
timekey_use_utc true # use utc
flush_thread_count 10
</buffer>
<format>
@type json
</format>
time_slice_format %Y%m%d%H%M
</store>
</match>
<match oci.0.8x8.vo.dev.os.audit.**>
@type copy
<store>
@type s3
aws_key_id e577cbec64dad7f892683dbde024fc0a077f4b5d
aws_sec_key fyGrYtUUdUuK9uIY9/4aH/09/bjFnu4GgW9wjiCdvwA=
s3_bucket idxixi5bmstw
s3_region us-sanjose-1
s3_endpoint https://idxixi5bmstw.compat.objectstorage.us-sanjose-1.oraclecloud.com
path HIPAA_Logs_Bucket/${environment}/${fqdn}/%F/audit/
s3_object_key_format %{path}%{time_slice}_%{index}.%{file_extension}
check_apikey_on_start false
ssl_verify_peer false
check_bucket false
<buffer tag,time,oci_la_log_source_name,hostIpAddress,logName,environment,fqdn,businessUnit>
@type file
tag ${tag}
path /var/log/fluent_oci_outplugin/buffer/2/audit/
timekey 120 # (default 3600) 1 hour partition
timekey_wait 10s
timekey_use_utc true # use utc
flush_thread_count 10
</buffer>
# <format>
# @type json
# </format>
time_slice_format %Y%m%d%H%M
</store>
</match>
<match oci.0.8x8.vo.dev.os.go-audit.**>
@type copy
<store>
@type s3
aws_key_id e577cbec64dad7f892683dbde024fc0a077f4b5d
aws_sec_key fyGrYtUUdUuK9uIY9/4aH/09/bjFnu4GgW9wjiCdvwA=
s3_bucket idxixi5bmstw
s3_region us-sanjose-1
s3_endpoint https://idxixi5bmstw.compat.objectstorage.us-sanjose-1.oraclecloud.com
path HIPAA_Logs_Bucket/${environment}/${fqdn}/%F/go_audit/
s3_object_key_format %{path}%{time_slice}_%{index}.%{file_extension}
check_apikey_on_start false
ssl_verify_peer false
check_bucket false
<buffer tag,time,oci_la_log_source_name,hostIpAddress,logName,environment,fqdn,businessUnit>
@type file
tag ${tag}
path /var/log/fluent_oci_outplugin/buffer/0/go_audit/
timekey 120 # (default 3600) 1 hour partition
timekey_wait 10s
timekey_use_utc true # use utc
flush_thread_count 10
</buffer>
<format>
@type json
</format>
time_slice_format %Y%m%d%H%M
</store>
</match>
<match oci.0.8x8.vo.dev.os.messages.**>
@type copy
<store>
@type s3
aws_key_id e577cbec64dad7f892683dbde024fc0a077f4b5d
aws_sec_key fyGrYtUUdUuK9uIY9/4aH/09/bjFnu4GgW9wjiCdvwA=
s3_bucket idxixi5bmstw
s3_region us-sanjose-1
s3_endpoint https://idxixi5bmstw.compat.objectstorage.us-sanjose-1.oraclecloud.com
path HIPAA_Logs_Bucket/${environment}/${fqdn}/%F/messages/
s3_object_key_format %{path}%{time_slice}_%{index}.%{file_extension}
check_apikey_on_start false
ssl_verify_peer false
check_bucket false
<buffer tag,time,oci_la_log_source_name,hostIpAddress,logName,environment,fqdn,businessUnit>
@type file
tag ${tag}
path /var/log/fluent_oci_outplugin/buffer/0/messages/
timekey 120 # (default 3600) 1 hour partition
timekey_wait 10s
timekey_use_utc true # use utc
flush_thread_count 10
</buffer>
# <format>
# @type json
# </format>
time_slice_format %Y%m%d%H%M
</store>
</match>
<match oci.0.8x8.vo.dev.os.secure.**>
@type copy
<store>
@type s3
aws_key_id e577cbec64dad7f892683dbde024fc0a077f4b5d
aws_sec_key fyGrYtUUdUuK9uIY9/4aH/09/bjFnu4GgW9wjiCdvwA=
s3_bucket idxixi5bmstw
s3_region us-sanjose-1
s3_endpoint https://idxixi5bmstw.compat.objectstorage.us-sanjose-1.oraclecloud.com
path HIPAA_Logs_Bucket/${environment}/${fqdn}/%F/secure/
s3_object_key_format %{path}%{time_slice}_%{index}.%{file_extension}
check_apikey_on_start false
ssl_verify_peer false
check_bucket false
<buffer tag,time,oci_la_log_source_name,hostIpAddress,logName,environment,fqdn,businessUnit>
@type file
tag ${tag}
path /var/log/fluent_oci_outplugin/buffer/1/secure/
timekey 120 # (default 3600) 1 hour partition
timekey_wait 10s
timekey_use_utc true # use utc
flush_thread_count 10
</buffer>
# <format>
# @type json
# </format>
time_slice_format %Y%m%d%H%M
</store>
</match>
<match oci.0.8x8.vo.dev.os.kern.**>
@type copy
<store>
@type s3
aws_key_id e577cbec64dad7f892683dbde024fc0a077f4b5d
aws_sec_key fyGrYtUUdUuK9uIY9/4aH/09/bjFnu4GgW9wjiCdvwA=
s3_bucket idxixi5bmstw
s3_region us-sanjose-1
s3_endpoint https://idxixi5bmstw.compat.objectstorage.us-sanjose-1.oraclecloud.com
path HIPAA_Logs_Bucket/${environment}/${fqdn}/%F/kern/
s3_object_key_format %{path}%{time_slice}_%{index}.%{file_extension}
check_apikey_on_start false
ssl_verify_peer false
check_bucket false
<buffer tag,time,oci_la_log_source_name,hostIpAddress,logName,environment,fqdn,businessUnit>
@type file
tag ${tag}
path /var/log/fluent_oci_outplugin/buffer/1/kern/
timekey 120 # (default 3600) 1 hour partition
timekey_wait 10s
timekey_use_utc true # use utc
flush_thread_count 10
</buffer>
# <format>
# @type json
# </format>
time_slice_format %Y%m%d%H%M
</store>
</match>
Comments
Post a Comment