This must be the biggest noob question. I have my sidecar/filebeat running and it appears to be collecting logs and current logs. I am not sure how to see this data. I go to search and follow the guide on how query syntax and I do not see anything. Am I missing something?
I think that you only see the list of available files on the remote server where sidecar is installed. This is not what is collected and transported to Graylog. This is just a directory listing.
and I have it attached to a running input beat. I can see that the collector/sidecar/input are all running. This is evident in that it shows the dirs but I am not sure what or how to get the logs. - probably skipped a step.
Found somewhat helpful data at /var/lib/graylog-sidecar/collectors/filebeat/log/filebeat looks like it is failing to connect to my host at 192.168.2.61:5044
2020-05-27T10:07:32.328-0400 INFO pipeline/output.go:93 Attempting to reconnect to backoff(async(tcp://log.domain.com:5044)) with 3 reconnect attempt(s)
This is what the logs say, I have swapped the host section in the above config file from IP to DNS name, same error for both ways just shows dns name or IP.
2020-05-27T11:03:58.546-0400 ERROR pipeline/output.go:100 Failed to connect to backoff(async(tcp://log.domain.com:5044)): read tcp 192.168.2.61:58074->192.168.2.61:5044: read: connection reset by peer
2020-05-27T11:03:58.547-0400 INFO pipeline/output.go:93 Attempting to reconnect to backoff(async(tcp://log.domain.com:5044)) with 36 reconnect attempt(s)
I created a new collector configuration and moved the sidecar over to it. Shows success and it is running but when I check out the /etc/filebeatfilebeat.yml it still has the old config. Logs still say the. Do you know what the permissions should be by chance?
Thanks for your help up to this point, not sure I would have known where to look so far! I will start checking online and see if I can find more from this point and report back if I make any progress.
or you can try to install filebeat from repo and configure it without using the sidecar (just for now/test)
filebeat.yml configuration is the same without the GL head
Back to square one. I have not been able to figure out anything permission related. I also tried editing the filebeat individually and trying that, no luck.
I don’t think it is permission related. I followed what Fangycz said earlier and take out the security settings between filebeat and server and I can see the messages now. Has to be something I have done setting up the security between the server and filebeats.
Closing issue will create another post related to the security settings after I give it another go and I get stuck.