Following is the multiline pattern config we have used.
- type: filestream
# Unique ID among all inputs, an ID is required.
id: testfile
# Change to true to enable this input configuration.
enabled: true
# Paths that should be crawled and fetched. Glob based paths.
paths:
- 'F:\ProgramData\Secure Messaging\Logs\DEV_BETA\test.txt'
#- c:\programdata\elasticsearch\logs\*
multiline.pattern: '^\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} (AM|PM)'
multiline.negate: true
multiline.match: after
scan.start_position: beginning
ignore_older: 0s
following is the log file which we want parse it as single line
2025/04/28 06:17:04 AM
System.Exception: ServiceCode not found wrongservicecode.
2025/04/29 06:17:05 AM
System.Exception: ServiceCode not found wrongservicecode.
2025/04/29 06:17:06 AM
System.Exception: ServiceCode not found wrongservicecode.
2025/04/29 06:17:07 AM
System.Exception: ServiceCode not found wrongservicecode.
Instead of 4 documents, above log is indexed as 8 seperate documents. Currently using 8.17.4 version
Can you point me what i am missing out.
Thanks in advance.
Mani.