Skip to content

Instantly share code, notes, and snippets.

@jdavidrcamacho
Last active January 12, 2026 16:06
Show Gist options
  • Select an option

  • Save jdavidrcamacho/59dfd7bede651497498f6df0325acd60 to your computer and use it in GitHub Desktop.

Select an option

Save jdavidrcamacho/59dfd7bede651497498f6df0325acd60 to your computer and use it in GitHub Desktop.
fluend.conf
<system>
log_level info
</system>
<source>
@type tail
path /var/log/commands.log
pos_file /var/log/fluentd/commands.pos
tag shell_commands
<parse>
@type none
</parse>
read_from_head true
refresh_interval 1s
</source>
<source>
@type tail
path /var/log/outputs.log
pos_file /var/log/fluentd/outputs.pos
tag shell_outputs
<parse>
@type none
</parse>
read_from_head true
refresh_interval 1s
</source>
<match shell_commands>
@type copy
<store>
@type stdout
</store>
<store>
@type forward
send_timeout 10s
recover_wait 10s
heartbeat_type tcp
heartbeat_interval 1s
flush_interval 1s
<server>
host 10.50.20.9
port 24224
</server>
</store>
</match>
<match shell_outputs>
@type copy
<store>
@type stdout
</store>
<store>
@type forward
send_timeout 10s
recover_wait 10s
heartbeat_type tcp
heartbeat_interval 1s
flush_interval 1s
<server>
host 10.50.20.9
port 24224
</server>
</store>
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment