Giter VIP home page Giter VIP logo

Comments (6)

repeatedly avatar repeatedly commented on September 27, 2024

See: http://docs.fluentd.org/v0.12/articles/in_syslog#sourcehostnamekey

from fluentd-docker-image.

sgohl avatar sgohl commented on September 27, 2024

I tried adding source_hostname_key, but still I get the fluentd container hostname in the source field:

<source>
 @type syslog
 port 514
 tag syslog
 source_hostname_key
</source>

Also facility keeps being "fluentd" instead of the origin facility.
Tag is switching between "syslog.facility.level" and "fluent.warn"
I guess I have to do some reformatting/filtering, but to do that I have to have a unique pattern to match from

from fluentd-docker-image.

repeatedly avatar repeatedly commented on September 27, 2024

source_hostname_key

Why empty? Need key name. See document again.

from fluentd-docker-image.

repeatedly avatar repeatedly commented on September 27, 2024

And maybe, use_record_host parameter is needed: https://github.com/emsearcy/fluent-plugin-gelf/blob/master/lib/fluent/plugin/out_gelf.rb#L7

from fluentd-docker-image.

sgohl avatar sgohl commented on September 27, 2024

thanks for your answers ..
I read the docs more than twice on this part, but I don't get it gramatically:

 If set the value

which value?
I understand that I have to set a static value like "webserver01" ...
But I have tons of servers sending their logs to fluent on port 514.

I tried to set both options to "true":

<source>
 @type syslog
 port 1514
 tag syslog
 source_hostname_key true
 use_record_host true
</source>

But still nothing changes. "source" is always the hostname of the fluentd docker container

from fluentd-docker-image.

repeatedly avatar repeatedly commented on September 27, 2024

The entire explanation is "The field name of the client’s hostname. If set the value, the client’s hostname will be set to its key. The default is nil (no adding hostname)."

the value -> The field name of the client’s hostname -> source_hostname_key

use_record_host true

This is gelf plugin, not syslog plugin. See my comment again: #89 (comment)

How about source_hostname_key host and use_record_host true?

from fluentd-docker-image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.