Skip to content

Instantly share code, notes, and snippets.

@sobstel
Last active November 17, 2015 07:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sobstel/9bb797e46b1838797a8c to your computer and use it in GitHub Desktop.
Save sobstel/9bb797e46b1838797a8c to your computer and use it in GitHub Desktop.
Forwarding fluentd internal tag to loggly automatically
#
# install https://github.com/tagomoris/fluent-plugin-forest
#
# test
<source>
type tail
format /^(?<log>.*)$/
tag test
path /tmp/test.log
</source>
# loggly
<match **>
type forest
subtype loggly
<template>
loggly_url https://logs-01.loggly.com/inputs/TOKEN/tag/${tag}
</template>
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment