Alerting

Custom Fields in Raw Results of Scheduled Search

mpetteys
New Member

We recently upgraded our Splunk app from 3.4.14 to 4.2.1. I have a custom script called from a scheduled search which reads the raw results in the CSV format. I am still testing but it appears that in the older version, custom fields (as parsed by props.conf and transforms.conf) were included as columns in the CSV. In the new version, they are not being populated in the raw results. Any suggestions on howto get the custom fields to be included in the raw results.

Tags (1)
0 Karma
1 Solution

BobM
Builder

Newer versions of splunk have been optimised to not extract or create fields that are not needed. This makes it more efficient but has the drawback you mention.

You can tell splunk to add them back in using the fields command. Either mention only the fields you need or load them all with :

yoursearch | fields + *

View solution in original post

BobM
Builder

Newer versions of splunk have been optimised to not extract or create fields that are not needed. This makes it more efficient but has the drawback you mention.

You can tell splunk to add them back in using the fields command. Either mention only the fields you need or load them all with :

yoursearch | fields + *
Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...