Page 1 of 1

Long messages being truncated when sent using syslog_output.

Posted: Fri Feb 15, 2019 5:28 am
by GureenRyuu
Hey all. We have some rather long messages, around 3000 characters in size. Unfortunately they are being truncated. As you can see in the image below, the end of the field is cut off.

Is it possible to increase the message limit so that they would no longer be truncated? Perhaps using something other than syslog_output?

We’re using the following Ossec 3.1 for log collection, sending messages to a CEF UDP input in Graylog 2.5.

Image

Re: Long messages being truncated when sent using syslog_out

Posted: Tue Feb 19, 2019 5:03 pm
by mikeshinn
I know in the past this limit was required because not all syslog listeners could handle messages larger than that.

Re: Long messages being truncated when sent using syslog_out

Posted: Tue Aug 20, 2019 4:29 am
by GureenRyuu
mikeshinn wrote:I know in the past this limit was required because not all syslog listeners could handle messages larger than that.
Is there a way to work around this? We have long messages being sent and we need them to be sent in full.

Re: Long messages being truncated when sent using syslog_out

Posted: Tue Aug 20, 2019 6:58 pm
by mikeshinn
Yes the latest version of AEO allows for setting effectively an unlimited limit, just make sure youre using the latest version of AEO.

Re: Long messages being truncated when sent using syslog_out

Posted: Wed Sep 11, 2019 1:12 am
by GureenRyuu
mikeshinn wrote:Yes the latest version of AEO allows for setting effectively an unlimited limit, just make sure youre using the latest version of AEO.
I am. Where do I change this setting?

Re: Long messages being truncated when sent using syslog_out

Posted: Wed Sep 11, 2019 10:35 am
by mikeshinn
Sorry if I wasnt clear, the latest version of AEO has no limit. What version of AEO is the hub using?

Just run this command:

asl -v

Re: Long messages being truncated when sent using syslog_out

Posted: Tue Sep 17, 2019 6:57 am
by GureenRyuu
yum list installed | grep ossec
ossec-hids.x86_64 1:3.3.0-7006.el7.art @atomic
ossec-hids-server.x86_64 1:3.3.0-7006.el7.art @atomic

Re: Long messages being truncated when sent using syslog_out

Posted: Tue Sep 17, 2019 4:35 pm
by mikeshinn
Thats pretty old, I dont think we've put out a version of AEO using a version of OSSEC that old. Can you send me the version number for AEO with this command:

asl -v

Re: Long messages being truncated when sent using syslog_out

Posted: Wed Sep 18, 2019 3:54 am
by GureenRyuu
mikeshinn wrote:Thats pretty old, I dont think we've put out a version of AEO using a version of OSSEC that old. Can you send me the version number for AEO with this command:

asl -v

It says no such command. Only Ossec is installed it seems.

Re: Long messages being truncated when sent using syslog_out

Posted: Wed Sep 25, 2019 3:23 pm
by mikeshinn
Ah, OK si that sounds like youre just using the open source builds? If so, then you need to grab the latest source code and build from that the binary your using is quite old and it looks like youre using 3.0, whereas the source tree has patches for the upcoming 4.0 release.

If youre using the commercial version, please let me know your system should definitely not be using such an old version of OSSEC.

Re: Long messages being truncated when sent using syslog_out

Posted: Wed Oct 16, 2019 7:21 am
by GureenRyuu
mikeshinn wrote:Ah, OK si that sounds like youre just using the open source builds? If so, then you need to grab the latest source code and build from that the binary your using is quite old and it looks like youre using 3.0, whereas the source tree has patches for the upcoming 4.0 release.

If youre using the commercial version, please let me know your system should definitely not be using such an old version of OSSEC.

We are using the open source version yes. Unfortunately it seems the latest tag is 3.3.0

https://github.com/ossec/ossec-hids