Does Logstash has a limit size for each event-message?


#1

Hello,

I am using file input plugin and wanted to know if Logstash has a size limit for each message/event?
If yes, is it configurable? I am not able to find it in any documentation.

Thanks,
Ashish


(Mark Walkom) #2

Why do you want to do this?


#3

Mark,

I do not mean to change it but we see cases where our multi-line log messages have xml embedded in them.
I am fine if long messages get truncated but wanted to know what is the upper limit when it gets truncated so that we can advise our application teams to log messages accordingly.


(Mark Walkom) #4

I don't believe there is any limit, but then I don't know if we've tested massively long XML files (nor what massive is in this context).

If you can get your apps team to alter things I'd recommend getting them to log in JSON instead :slight_smile:


#5

Thanks Mark! :slight_smile:


(Mark Walkom) #6

Turns out that you can set a limit for the multiline filter, but not for the XML one.


(Ganesh) #7

I'm facing same issue. My event contain XML data and it have more than 2500 lines, but when i check message field it contain 500 lines. Is there any limit has to increase for the message filed


(system) #8