i used simple config
parsers:
- multiline:
type: pattern
pattern: '^test'
negate: false
match: after
output.console:
pretty: true
ter_id":"41e9015a-67cd-4e5a-b602-6ce8a0eba50d","ecs.version":"1.6.0"}
{
"@timestamp": "2022-10-16T10:00:03.092Z",
"@metadata": {
"beat": "filebeat",
"type": "_doc",
"version": "8.4.3"
},
"input": {
"type": "log"
},
"ecs": {
"version": "8.0.0"
},
"host": {
"name": "nturri-HP"
},
"agent": {
"ephemeral_id": "85c44e17-dfb7-472f-b57a-be5d14f43dab",
"id": "0b4a67a1-c70a-4110-9dea-26571614c0dd",
"name": "nturri-HP",
"type": "filebeat",
"version": "8.4.3"
},
"log": {
"file": {
"path": "G:\\filebeat-8.4.3-windows-x86_64\\logs\\test2.log"
},
"offset": 0
},
"message": "hello how are you"
}
{
"@timestamp": "2022-10-16T10:00:03.092Z",
"@metadata": {
"beat": "filebeat",
"type": "_doc",
"version": "8.4.3"
},
"log": {
"offset": 19,
"file": {
"path": "G:\\filebeat-8.4.3-windows-x86_64\\logs\\test2.log"
}
},
"message": "test",
"input": {
"type": "log"
},
"agent": {
"id": "0b4a67a1-c70a-4110-9dea-26571614c0dd",
"name": "nturri-HP",
"type": "filebeat",
"version": "8.4.3",
"ephemeral_id": "85c44e17-dfb7-472f-b57a-be5d14f43dab"
},
"ecs": {
"version": "8.0.0"
},
"host": {
"name": "nturri-HP"
}
}
{
"@timestamp": "2022-10-16T10:00:03.092Z",
"@metadata": {
"beat": "filebeat",
"type": "_doc",
"version": "8.4.3"
},
"input": {
"type": "log"
},
"agent": {
"type": "filebeat",
"version": "8.4.3",
"ephemeral_id": "85c44e17-dfb7-472f-b57a-be5d14f43dab",
"id": "0b4a67a1-c70a-4110-9dea-26571614c0dd",
"name": "nturri-HP"
},
"ecs": {
"version": "8.0.0"
},
"host": {
"name": "nturri-HP"
},
"log": {
"offset": 25,
"file": {
"path": "G:\\filebeat-8.4.3-windows-x86_64\\logs\\test2.log"
}
},
"message": "i am fine "
}
hello how are you
test
i am fine
and you
but never apply this
i see this video and version 6 is functionally
[Filebeat Demo- Multiline configuration | how to read multiple lines at a time from log file . - YouTube](https://www.youtube.com/watch?v=823ZdeebCDI)