Skip to content

Instantly share code, notes, and snippets.

@markuman
Created September 23, 2019 15:08
Show Gist options
  • Select an option

  • Save markuman/308e40e4ec9321eae8ce3e81dfe5f986 to your computer and use it in GitHub Desktop.

Select an option

Save markuman/308e40e4ec9321eae8ce3e81dfe5f986 to your computer and use it in GitHub Desktop.
[SERVICE]
Flush 1
Log_Level info
Daemon on
[INPUT]
Name tail
Path /var/www/html/var/logs/website/api.log
Tag web.api
Buffer_Max_Size 512K
Skip_Long_Lines on
[FILTER]
Name record_modifier
Match web.api
Record hostname ${HOSTNAME}
[OUTPUT]
Name forward
Match web.api
Retry_Limit False
Host ${FLUENTD_REMOTE_HOST}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment