Big news! The community will be moving to a new platform April 21. Read more.
Big news! The community will be moving to a new platform April 21. Read more.
Cadet 2nd Class Cadet 2nd Class
Cadet 2nd Class
384 views

Can I insert field delimiters into an exported CEF syslog stream?

We have a few custom log types that we're ingesting into Arcsight, so we've got connectors built and funcitoning.  Several of the fields contain data with spaces such as "zonename groupname blockname".  This is all well and good; however we're also forwarding the parsed CEF message on to a host via syslog.  Since the CEF fields are space delimited in this syslog stream, it's making the parsing on the other end complicated.  

Is there a way to insert a comma, pipe or other unique delimiter in between each CEF field when streaming?

Thanks,

Bill

Labels (1)
0 Likes
4 Replies
Absent Member.
Absent Member.

You can define format templates by using rsyslog which will help define the format of your syslog events and you can make them more ArcSight friendly

Templates — rsyslog 8.11.0 documentation

0 Likes
Cadet 2nd Class Cadet 2nd Class
Cadet 2nd Class

So the connector is using rsylog to forward the message, and I can set up a template on the connector to modify the syslog output by tweaking the rsyslog template?

0 Likes
Fleet Admiral
Fleet Admiral

Hi Bill,

Maybe this document could be interesting to know what you can do with CEF events (cf. below).

I know that you may chaining ArcSight Connector as CEF is the default format.

Thanks

Kind Regards

Michael

0 Likes
Fleet Admiral
Fleet Admiral

Are there regex restrictions on "the other end"? If the parsing engine on that receiving end can support regex lookarounds, I can give you some guidance of how to properly parse CEF without needing to add extra delimiters.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.