Last active
November 17, 2015 07:47
-
-
Save sobstel/9bb797e46b1838797a8c to your computer and use it in GitHub Desktop.
Forwarding fluentd internal tag to loggly automatically
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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