Splunk Search

Splunk extraction of fields for email texts

tan_junyuan
Engager

I have the infra as shown below:
Splunk Log Forwarder-> Splunk Indexer

The Log forwarder defines which data goes into which index, which is configured at Log Forwarder, Data Input -> Files/Directories.
The data(email text file) goes into the directory , then the forwarder forwards to the correct index.
Note: Email texts do not conform to any Common Information Model, when it goes into splunk indexer, it will be just text.

At the Log forwarder, there is a list of props.conf and transforms.conf to tell it how to look for regexp and extract the fields .
However, if new content and regexp changes, it will not be able to detect it.

Is there any intelligent way to know what fields to extract the fields(if the lines have this format xxxx followed by semi colon)
eg. Sent: Feb 19 2019 10:00 -> reported_time(field): Feb 19 2019 10:00
Reported issue: issue1-> reported_issue(field): issue1
user:xxx -> affected_user(field): user

Is this the correct way to extract the fields at the log forwarder?
Or it could be done at the Indexer, so that if the regexp changes, I just need to update, and the fields will be re-extracted accordingly.

Tags (1)
0 Karma

vinod94
Contributor

Hi @tan_junyuan ,

You need to do it at the indexer level, i mean in the indexer.You should not make any changes in forwarder (not a good practice).

This doc might help you!

https://docs.splunk.com/Documentation/Splunk/7.2.4/Knowledge/Exampleconfigurationswithprops.conf

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...