Splunk Search

Data extraction for msexchange subject field?

priya1926
Path Finder

Hi Team,

 

I need a rex command to extract subject field from the event _raw.. Currently i am splitting the fields with comma(,) and extracting the fields based on Index number.
The above scenario is success for 80 % of data but it fails to extract for rest because
 subject contains comma within the subject itself which is causing the subject to split into two different fields.

Labels (3)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Please share some sample events.

---
If this reply helps you, Karma would be appreciated.

priya1926
Path Finder

examples of subject

 "RE:This is about subject, field"

 RE,This is about subject field 1

[internal] "RE:This is about subject field"

 "RE:This is about subject field 1,2,3

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

This doesn't look like a raw event (just the subject field?) - please share the full raw event in a code block </>

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Please share some anonymised events in a code block </> to preserve formatting.

Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...