Hi,

I know I could use the following code to parse information in
collector.

this.s_RXBufferString.parseNVP(" ", "=", "\"")

However I'm expecting a format of *field_name="value"* - However in my
log example not all values are between "" - so I'm struggling to
understand how do I parse data using parseNVP?

My message format is *field_name=value,* OR *field_name="value",*
I know that my message ends with a *","*


Below is an example log:

Apr 28 10:05:55 1.1.1.1
Imperva,event#=6741731446672024339,createTime=2015-04-28
10:05:55.0,eventType=User logged
in,eventSev=High,username=System,subsystem=User,me ssage="User A167873
logged in from 1.1.1.1."


Can someone help me write a parseNVP please? Also appreciate if someone
can explain how the parseNVP works please?


Regards,
Pras


--
pimpalp
------------------------------------------------------------------------
pimpalp's Profile: https://forums.netiq.com/member.php?userid=5587
View this thread: https://forums.netiq.com/showthread.php?t=53409