Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for custom Loggly tags #58

Merged
merged 1 commit into from
Jan 22, 2018

Conversation

ZachEddy
Copy link
Contributor

Custom Loggly Tags

This pull request allows Loggly users to customize how their logs are tagged. Inside issue #57, I describe why this functionality might be useful:

I'd like to add multiple tags to logs that are sent from Fluentd to Loggly. With the current Fluentd configuration, Loggly logs are only tagged as fleuntd and I don't have the option to add my own tags.

The proposed change enables someone to provide Fluentd with a list of custom tags. Fluentd will tag all Loggly logs according to the list of given tags. Alternatively, if no custom tags are provided, all logs are tagged as fluentd by default (to reflect the current behavior).

@pirankashani
Copy link

Hello,
I would like to customize my log with more tags. for instance if a log look likes as following:

{"log":"I1125 11:33:18.947057 1 trace.go:76] Trace[1459855838]: "Get /api/v1/namespaces/kube-system/endpoints/kube-scheduler" (started: 2017-11-25 11:33:18.315642294 +0000 UTC) (total time: 631.38115ms):\n","stream":"stderr","time":"2017-11-25T11:33:18.952213987Z"}

I need to arrange it in this way:
I = Info
1125= 25-Dec
and other items so on.

Is it possible to edit this project anyhow or I should create a Fork request? What is your idea?

@edsiper edsiper merged commit 9eec1c0 into fluent:master Jan 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants