This is the harvester part of my file beat (version6.8)
I intend so that the multi-line pattern is applied if the beginning of the log is not an 8-digit number.
And if you encounter a log that starts with an 8-digit number, the multi-line pattern application ends.
''''
-type: log
enabled: true
paths:
- mylogpath
multiline.pattern: "^[^0-9]{8}"
multiline.negate: true
multiline.match: after
multiline.flush_pattern: "^[0-9]{8}"
''''
This is part of my log
20200604 101010101 log...\n
makdneislalwnrufoskqnrhdi \n
skckzjsnfjfozkwmrjfidis \n
skxkvignrndksoslqnrjfi \n
dkxovognrndjsisoakqmenrjdi \n
20200604 101010101 log... \n
I tried [[:digit]] instead of [0-9], but the result was the same.
But when I changed to \d, I couldn't try because of filebeat error.
Please help me what was wrong and what I missed Thank you