Looking for a way, size of log event

Hello community,

Is there any way to know message size in b or kb or mb or any unit of digital info in logstash?
eg: logstash get message ABCDEFBADFASFD13241325POIYTUUBLABLABLA
How can we know that message size? Is that possible in logstash?
Which plugin is suitable? appreciate any idea :pray:

Does this help?

1 Like

Yes, it's helpful. @Badger Thanks man
I use this code snippet
ruby { code => "event.set('log_size', event.get('message').bytesize)" }

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.