2018-10-22 04:29 AM
Hello
We have a system that writes to the application log.
I can collect other application log messages, but the particular messages written by this application are not rendered correctly.
What I can see is:
%NICWIN-4-Application_1_BLAH: Application,rn=191245 cid= eid=,Sun Oct 21 23:15:17 2018,1,BLAH,,Classic,mycomputer.mydomain.com,0,,
Here you can see that the event is truncated.
Now other application logs are displayed correctly so the collecting user is a member of the event log readers group.
If I look in the XML of the event in the Microsoft Event Viewer then it has the following fields
2018-10-30 08:47 AM
I managed to bodge a work around for this.
1) Set up the event source for winrm collection as normal, and confirm you are getting events in (even if they are truncated)
2) Put the event source into debug verbose mode.
3)This causes all events to be written to the /var/log/netwitness/logcollector/ log files
4) Change the size of the Log Files to 10MB. This causes them to rollover more frequently
5) Grab events out of log files and re inject them into the system
2018-10-22 05:47 AM
Looking in the data of the messages I can see that they contain \r\n characters. Could this be the issue?
2018-10-22 08:14 AM
I found an event which was not being processed that did not contain \r or \n. The only special characters might be I (pipe) symbol.
2018-10-23 05:10 AM
From what i have seen so far, it seems that the log message is being successfully collected, but just not sent completely onwards.
We have event source -> VLC -> Local Collector ->Log Decoder
2018-10-23 09:29 AM
can you try to tcpdump on the vlc and use the -vvv option to capture verbose? curious to see if there is a tab or something in there that breaks the parsing that you are hitting. THere are a few options in the VLC that remove or replace tabs and a few other things depending on your version.
Could you also try to point this to a local LC to see if that removes the issue (maybe VLC is manipulating a character at capture)? (not sure if this is prod or testing)
2018-10-24 03:41 AM
Morning Eric
Thank you for your response.
I did a tcpdump on the logdecoder and was able to verify that the message is arriving truncated before it hits the log decoder.
I will try to get it coming directly into a LC to see if that helps. This is a production system so it is quite difficult with firewall rules etc ...
2018-10-24 04:53 AM
To get around having to raise firewall rules i used:
Log Collector in DMZ getting error with SysLog
To set my test Log Collector to a Local Log Collector.
Im reinstalling the remote log collector as a local log collector to test...
2018-10-24 04:58 AM
Hi David,
Since the collection is through Windows Collection, the logs shown are correct. In windows Transformation the second part of the event is formed from the /RenderingInfo/Messages attribute. In your case the said attribute has No Data, thus the events looked truncated.
with regards
Arnab
2018-10-24 05:39 AM
Hi the same result occured when it was a local collector.
2018-10-24 05:39 AM
Hi Arnab is there a solution to this?