filebeat-1.2.
Windows 2007
Steps to Reproduce:
Extract sample.zip (attached)run filebeat -e -v -c filebeat.yml
----------------------------------- filebeat.yml
# This is the main configuration file for this
filebeat:
prospectors:
-
paths:
- sample.log
input_type: log
multiline:
max_lines: 7
pattern: ".*---------- Begin Data ----------"
negate: true
match: after
scan_frequency: ${SCAN_FREQUENCY:1s}
tail_files: ${TAIL:false}
spool_size: ${SPOOL_SIZE:2048}
idle_timeout: ${IDLE_TIMEOUT:5s}
registry_file: filebeat.registry
config_dir: ${PROSPECTORS:./prospectors}
output:
console:
shipper:
logging:
level: ${LOG_LEVEL:warning}
files:
rotateeverybytes: ${LOG_SIZE:10485760} # = 10MB
----------------------------------- sample.log
04/18/2016 05:07:42.775 INFO=>Hello there world.
04/18/2016 05:07:42.775 INFO=>You should not see this
04/18/2016 05:07:42.776 INFO=>Are you seeing this and why
04/18/2016 05:07:42.776 INFO=>Yep some data here
04/18/2016 05:07:43.205 INFO=>More text
04/18/2016 05:07:50.770 INFO=>Even more stuff
04/18/2016 05:07:56.126 INFO=>This line has the
04/18/2016 05:07:56.126 INFO=>Hi there
04/18/2016 05:08:47.546
04/18/2016 05:08:47.546 ------------------ Begin Data -----------------
04/18/2016 05:08:47.546 This I want Line 2
04/18/2016 05:08:47.546 This I want Line 3
04/18/2016 05:08:47.546 This I want Line 4
04/18/2016 05:08:47.546 This I want Line 5
04/18/2016 05:08:47.546 This I want Line 6
04/18/2016 05:08:47.546 This I want Line 7
04/18/2016 05:08:47.546 --------------------------------------------------
Observed:
*********************** UNEXPECTED NON MATCHING DATA
2016/05/11 13:34:24.325552 publish.go:88: INFO Start sending events to output
{"@timestamp":"2016-05-11T13:34:24.286Z","beat":{"hostname":"ITEM-AX35133","name":"ITEM-AX35133"},"count":1,"fields":null,"input_type":"log","message":"04/18/2016
05:07:42.775 INFO=\u003eHello there world.\r\n04/18/2016 05:07:42.775
INFO=\u003eYou should not see this\r\n04/18/2016 05:07:42.776
INFO=\u003eAre you seeing this and why\r\n04/18/2016 05:07:42.776
INFO=\u003eYep some data here\r\n04/18/2016 05:07:43.205
INFO=\u003eMore text\r\n04/18/2016 05:07:50.770 INFO=\u003eEven more
stuff\r\n04/18/2016 05:07:56.126 INFO=\u003eThis line has
the","offset":0,"source":"sample.log","type":"log"}
2016/05/11 13:34:26.777797 publish.go:104: INFO Events sent: 1
2016/05/11 13:34:26.778797 registrar.go:157: INFO Registry file updated. 1 states written.
*********************** MATCHING DATA
{"@timestamp":"2016-05-11T13:34:24.286Z","beat":{"hostname":"ITEM-AX35133","name":"ITEM-AX35133"},"count":1,"fields":null,"input_type":"log","message":"04/18/2016
05:08:47.546 ------------------ Begin Data
-----------------\r\n04/18/2016 05:08:47.546 This I want Line
2\r\n04/18/2016 05:08:47.546 This I want Line 3\r\n04/18/2016
05:08:47.546 This I want Line 4\r\n04/18/2016 05:08:47.546
This I want Line 5\r\n04/18/2016 05:08:47.546 This I want Line
6\r\n04/18/2016 05:08:47.546 This I want Line
7","offset":426,"source":"sample.log","type":"log"}
2016/05/11 13:34:31.778297 publish.go:104: INFO Events sent: 1
2016/05/11 13:34:31.779297 registrar.go:157: INFO Registry file updated. 1 states written.