Comments (3)
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.
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.
Closing this for now, I think there will be some improvements when #26 is implemented.
from collector-sidecar.
Related Issues (20)
- Windows Sidecar 1.3.0 hangs on silent install HOT 3
- Allow specifying tags during sidecar install on windows
- Ubuntu 22 - Filebeat issue. HOT 6
- Sidecar hangs during restart HOT 1
- Ability to use Sidecar to send logs directly to Graylog Cloud
- Increase the amount of clients the sidecar configs can be assigned to from a max of 100 to 1000 HOT 2
- Add C:\Program Files\nxlog\nxlog.exe to the default collector_binaries_accesslist
- Sidecar does not correctly detect a stalled filebeat journald input
- Graylog Sidecar does not work with redirect HOT 3
- Sidecar 1.4.0 with filebeat doesnโt change path.data & path.logs HOT 3
- Is it identified as malicious software on VirusTotal?
- Re-resolve Graylog server hostname on interval HOT 1
- Sidecar can temporarly lose config registrations HOT 1
- Sidecar 1.5 Filebeat does not have correct permissions to access /usr/share HOT 2
- APITOKEN is not saved during windows silent install HOT 1
- How to change Host once sidecar is already installed HOT 1
- Sidecar does not delete orphaned stdout logs
- Graylog Sidecar Install on SUSE Linux
- Sidecar should not always automatically restart on configuration change HOT 5
- [feature request] - New release with updated components
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from collector-sidecar.