Splunk Search

Rex for cef event and create field alias accordingly

ritikaviavi
Observer

sample CEF:

May 20 20:44:51 10.XX.XX.XX May 20 2019 20:44:51 avcm02.com CEF:0|AV|Control Manager|7.0|BM:1000|Behavior Monitoring|3|rt=May 20 2019 03:34:47 GMT+00:00 dvchost=AV1 cn1Label=Risk_Level cn1=1 cs2Label=Policy cs2=1000 sproc=C:\\Windows\\System32\\taskeng.exe cn2Label=Event_Type cn2=1 cs1Label=Target cs1=C:\\Windows\\system32\\wscript.exe act=3 cn3Label=Operation cn3=101 shost=229Y9G2 src=10.XX.XX.XX deviceFacility=OfficeScan

Our AV is forwarding multiple types of events, in the above mentioned "Behavior Monitoring " events, I want to convert the corresponding shost to field dhost .
How should I place it in props/transforms ?

0 Karma

venkasplunk
New Member

U can try like this

"CEF" | extract pairdelim="{ }" kvdelim="=" | table shost src cs1

0 Karma

venkasplunk
New Member

Can provide some more information so that i will try to give some pointers?

U can try like this

"CEF" | extract pairdelim="{ }" kvdelim="=" | table shost src cs1

0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...