I made a fresh install of the RPM package from graylog repo on a CentOS7
machine.
Following the instructions on https://github.com/Graylog2/collector and had
no success.
Only worked when added this to the config file:
*collector-id = "file:/etc/graylog/collector/collector-id"*
Basically the collector was trying to write the id somewhere else. I will
issue a report on github, but, that may solve problems to anyone here until
solved by upstream.
I was getting this error log:
2016-03-15T17:41:31.241-0300 INFO [main] cli.commands.Run - Starting
Collector v0.4.2 (commit 2609a38)
2016-03-15T17:41:31.247-0300 INFO [main] cli.commands.Run - Running on
CentOS Linux release 7.2.1511 (Core) Linux 3.10.0-327.10.1.el7.x86_64
(amd64)
2016-03-15T17:41:32.235-0300 INFO [main] collector.utils.CollectorId - No
node ID file found. Generated: 77e5357d-358c-42c0-a360-cc962d435e06
2016-03-15T17:41:32.240-0300 ERROR [main] cli.commands.Run - ERROR: Unable
to create injector, see the following errors:
1) Error injecting constructor, java.lang.RuntimeException: Unable to
persist node ID
at org.graylog.collector.utils.CollectorId.<init>(CollectorId.java:43)
at
org.graylog.collector.utils.CollectorIdModule.configure(CollectorIdModule.java:25)
while locating org.graylog.collector.utils.CollectorId
1 error
2016-03-15T17:41:32.240-0300 INFO [main] cli.commands.Run - Exit
2016-03-15T17:41:32.241-0300 INFO [Thread-1] cli.commands.Run - Stopping...
And my config was:
inputs {
apache-logs {
type = "file"
path-glob-root = "/var/log/httpd"
path-glob-pattern = "*{access,error}_log"
//outputs = "gelf-tcp-01"
}
}
outputs {
gelf-tcp-01 {
type = "gelf"
host = "graylog.locallab.lan"
port = 12201
client-queue-size = 512
client-connect-timeout = 5000
client-reconnect-delay = 1000
client-tcp-no-delay = true
client-send-buffer-size = 32768
}
}
--
You received this message because you are subscribed to the Google Groups
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/graylog2/301ff373-deaf-4df3-b8eb-b5ae1aedf9b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.