Hi
I have 3 graylog clusters (no connection between the clusters).
I would like to set filebeat to read and send a log file. I will need application logs from one envirement, MSSQL files from other. I set it up, but it doesn’t work, so I started to play in the third (test) system. And it is working well, so I can’t understand…
server side versions:
same in the master and the test envirement:
graylog-server-2.4.0-9
elasticsearch-5.6.6
mongodb-org-server-3.6.2
Client side versions:
Graylog Collector Sidecar version 0.0.9
filebeat version 1.2.3 (386)
I use graylog sidecar, and it create the followinf file for filebeat:
filebeat:
prospectors:
- document_type: log
encoding: plain
exclude_files: []
fields:
gl2_source_collector: 694c87d3-a4e8-4133-9a6e-47af95f956f4
ignore_older: 0
input_type: log
paths:
- c:\test.log
scan_frequency: 10s
tail_files: false
output:
logstash:
hosts:
- 10.14.0.XX:5044
filebeat:
registry_file: C:/Program Files/graylog/collector-sidecar/.filebeat.yml
logging:
to_files: true
files:
path: C:/Program Files/graylog/collector-sidecar
rotateeverybytes: 10485760
level: warning
So this configuration working well with the test envirement. (ok, sometimes it missed the first two letters from the line) If I change the IP address at the graylog website collector part, it doesn’t work with the live envirement. (the two systems in the same sumbets, so no different firóewall or proxys what can modify the packages)
I changed the log to trace, and I got this in the test system:
[root@graylog-t-node-01 ~]# grep 44652dc0-00f1-11e8-87c5-0050569f2180 -i /var/log/graylog-server/server.log
2018-01-24T11:28:06.940+01:00 TRACE [Message] [Message size update][44652dc0-00f1-11e8-87c5-0050569f2180] key message/7, new/old/change: 6/0/13 total: 13
2018-01-24T11:28:06.940+01:00 TRACE [Message] [Message size update][44652dc0-00f1-11e8-87c5-0050569f2180] key source/6, new/old/change: 6/0/12 total: 25
2018-01-24T11:28:06.940+01:00 TRACE [Message] [Message size update][44652dc0-00f1-11e8-87c5-0050569f2180] key timestamp/9, new/old/change: 8/0/17 total: 42
2018-01-24T11:28:06.940+01:00 TRACE [Message] [Message size update][44652dc0-00f1-11e8-87c5-0050569f2180] key name/4, new/old/change: 6/0/10 total: 52
2018-01-24T11:28:06.940+01:00 TRACE [Message] [Message size update][44652dc0-00f1-11e8-87c5-0050569f2180] key type/4, new/old/change: 3/0/7 total: 59
2018-01-24T11:28:06.940+01:00 TRACE [Message] [Message size update][44652dc0-00f1-11e8-87c5-0050569f2180] key facility/8, new/old/change: 8/0/16 total: 75
2018-01-24T11:28:06.940+01:00 TRACE [Message] [Message size update][44652dc0-00f1-11e8-87c5-0050569f2180] key file/4, new/old/change: 12/0/16 total: 91
2018-01-24T11:28:06.940+01:00 TRACE [Message] [Message size update][44652dc0-00f1-11e8-87c5-0050569f2180] key input_type/10, new/old/change: 3/0/13 total: 104
2018-01-24T11:28:06.940+01:00 TRACE [Message] [Message size update][44652dc0-00f1-11e8-87c5-0050569f2180] key count/5, new/old/change: 4/0/9 total: 113
2018-01-24T11:28:06.940+01:00 TRACE [Message] [Message size update][44652dc0-00f1-11e8-87c5-0050569f2180] key offset/6, new/old/change: 4/0/10 total: 123
2018-01-24T11:28:06.940+01:00 DEBUG [ProcessBufferProcessor] Starting to process message <44652dc0-00f1-11e8-87c5-0050569f2180>.
2018-01-24T11:28:06.940+01:00 TRACE [Message] [Message size update][44652dc0-00f1-11e8-87c5-0050569f2180] stream added: 131
2018-01-24T11:28:06.940+01:00 DEBUG [MessageFilterChainProcessor] Applying filter [Extractor] on message <44652dc0-00f1-11e8-87c5-0050569f2180>.
2018-01-24T11:28:06.940+01:00 DEBUG [MessageFilterChainProcessor] Applying filter [Static field appender] on message <44652dc0-00f1-11e8-87c5-0050569f2180>.
2018-01-24T11:28:06.940+01:00 DEBUG [MessageFilterChainProcessor] Applying filter [Rulesfilter] on message <44652dc0-00f1-11e8-87c5-0050569f2180>.
2018-01-24T11:28:06.940+01:00 DEBUG [MessageFilterChainProcessor] Applying filter [StreamMatcher] on message <44652dc0-00f1-11e8-87c5-0050569f2180>.
2018-01-24T11:28:06.940+01:00 DEBUG [StreamMatcherFilter] Routed message <44652dc0-00f1-11e8-87c5-0050569f2180> to 0 streams.
2018-01-24T11:28:06.941+01:00 DEBUG [ProcessBufferProcessor] Finished processing message <44652dc0-00f1-11e8-87c5-0050569f2180>. Writing to output buffer.
2018-01-24T11:28:06.941+01:00 DEBUG [OutputBufferProcessor] Processing message <44652dc0-00f1-11e8-87c5-0050569f2180> from OutputBuffer.
2018-01-24T11:28:06.941+01:00 TRACE [OutputBufferProcessor] Message id for [class org.graylog2.outputs.BlockingBatchedESOutput]: <44652dc0-00f1-11e8-87c5-0050569f2180>
2018-01-24T11:28:06.941+01:00 DEBUG [OutputBufferProcessor] Wrote message <44652dc0-00f1-11e8-87c5-0050569f2180> to all outputs. Finished handling.
2018-01-24T11:28:07.501+01:00 TRACE [ElasticSearchOutput] Writing message ids to [ElasticSearch Output]: <44649180-00f1-11e8-87c5-0050569f2180, 44652dc0-00f1-11e8-87c5-0050569f2180>
2018-01-24T11:28:08.687+01:00 TRACE [Message] [Message size update][44652dc0-00f1-11e8-87c5-0050569f2180] key offset/6, new/old/change: 4/0/10 total: 10
2018-01-24T11:28:08.687+01:00 TRACE [Message] [Message size update][44652dc0-00f1-11e8-87c5-0050569f2180] key streams/7, new/old/change: 0/0/7 total: 17
2018-01-24T11:28:08.687+01:00 TRACE [Message] [Message size update][44652dc0-00f1-11e8-87c5-0050569f2180] key input_type/10, new/old/change: 3/0/13 total: 30
2018-01-24T11:28:08.687+01:00 TRACE [Message] [Message size update][44652dc0-00f1-11e8-87c5-0050569f2180] key count/5, new/old/change: 4/0/9 total: 39
2018-01-24T11:28:08.687+01:00 TRACE [Message] [Message size update][44652dc0-00f1-11e8-87c5-0050569f2180] key source/6, new/old/change: 6/0/12 total: 51
2018-01-24T11:28:08.687+01:00 TRACE [Message] [Message size update][44652dc0-00f1-11e8-87c5-0050569f2180] key message/7, new/old/change: 6/0/13 total: 64
2018-01-24T11:28:08.687+01:00 TRACE [Message] [Message size update][44652dc0-00f1-11e8-87c5-0050569f2180] key type/4, new/old/change: 3/0/7 total: 71
2018-01-24T11:28:08.687+01:00 TRACE [Message] [Message size update][44652dc0-00f1-11e8-87c5-0050569f2180] key file/4, new/old/change: 12/0/16 total: 87
2018-01-24T11:28:08.687+01:00 TRACE [Message] [Message size update][44652dc0-00f1-11e8-87c5-0050569f2180] key name/4, new/old/change: 6/0/10 total: 97
2018-01-24T11:28:08.687+01:00 TRACE [Message] [Message size update][44652dc0-00f1-11e8-87c5-0050569f2180] key facility/8, new/old/change: 8/0/16 total: 113
2018-01-24T11:28:08.687+01:00 TRACE [Message] [Message size update][44652dc0-00f1-11e8-87c5-0050569f2180] key timestamp/9, new/old/change: 8/0/17 total: 130
And I got it in the live:
[root@graylog-node-01 ~]# grep abb0b065-00ee-11e8-bf19-0050569f426c /var/log/graylog-server/server.log
2018-01-24T11:09:31.750+01:00 TRACE [RawMessageEncoderHandler] Serialized message abb0b065-00ee-11e8-bf19-0050569f426c for journal, size 418 bytes
2018-01-24T11:09:31.750+01:00 TRACE [JournallingMessageHandler] Journalling message abb0b065-00ee-11e8-bf19-0050569f426c
2018-01-24T11:09:31.758+01:00 DEBUG [DecodingProcessor] Dropping incomplete message RawMessage{id=abb0b065-00ee-11e8-bf19-0050569f426c, journalOffset=385255131, codec=beats, payloadSize=297, timestamp=2018-01-24T10:09:31.750Z, remoteAddress=/100.64.3.47:61149} on input <58ee3d6df3f079039382a57b>. Parsed fields: [{gl2_source_collector=694c87d3-a4e8-4133-9a6e-47af95f956f4, file=c:\teszt.log, offset=474, name=L61922, input_type=log, count=1, _id=abb1e8e0-00ee-11e8-bf19-0050569f426c, source=L61922, message=, type=log, facility=filebeat, timestamp=2018-01-24T10:09:26.805Z}]
[root@graylog-node-01 ~]#
I have checked the graylogs configuration, but I don’t see any diference.
Message Processors Configuration
The following message processors are executed in order. Disabled processors will be skipped.
# Processor Status
1 GeoIP Resolver disabled
2 Message Filter Chain active
3 Pipeline Processor active
4 AWS Instance Name Lookup disabled
In the live system I have pipelines configured, but I also tried to remove the connections of the pipelines from “All messages” stream, but it didn’t help. Also I tried to make dummy pipeline in the test system.
I have checked, same input setting on both side.
Beats Beats 2 RUNNING
bind_address:
0.0.0.0
override_source:
<empty>
port:
5044
recv_buffer_size:
1048576
tcp_keepalive:
false
tls_cert_file:
<empty>
tls_client_auth:
disabled
tls_client_auth_cert_file:
<empty>
tls_enable:
false
tls_key_file:
<empty>
tls_key_password:
********
Any idea why the wto system handle the same configuration different?
Thanks,
M