Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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