Giter Club home page Giter Club logo

Comments (3)

mariussturm avatar mariussturm commented on August 21, 2024

Hi,
hostname_fqdn() has already a build-in fallback to hostname() when there is no dns name available. That's why we hard wired it into the configuration. So I think the hostname configuration for that particular node is pretty broken. It is providing a dns name that resolves to 'localhost.localdomain'. Is it not possible to setup a proper hostname? This is needed for other services aswell.

from collector-sidecar.

stepkirk avatar stepkirk commented on August 21, 2024

Thanks for the feedback Marius.

You are correct that the host could have done a better job of figuring out its FQDN. I fixed that issue by modifying /etc/nsswitch.conf to query dns before looking in the local /etc/hosts files which is where it was getting the localhost.localdomain name from.

Still, it would be nice to have the option to choose the shortname over the FQDN for the source in Graylog. This would match the shortnames that get pulled from the syslog messages that get pushed into Graylog from our syslog-ng servers.

There is probably a way to massage the FQDN down to a shortname using an extractor but I was hoping to have the option to "fix" it on the sending side.

Thanks again for the reply.

from collector-sidecar.

mariussturm avatar mariussturm commented on August 21, 2024

Closing this for now, I think there will be some improvements when #26 is implemented.

from collector-sidecar.

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.