Splunk Search

Can you help me extract the following data into separate fields?

sravani27
Path Finder

Hi I have data in the following format:

1,20181030154237,XYZ/ABC - Something Anything,2018-10-30 15:42:37,2018-10-30 16:42:37,Success,n/a,XYZ/ABC - Something Anything,n/a,n/a,100000,0,gdd0t22_abc_xyz_cmpgn_summ_t

I am trying to extract like below:

field1       field2                       field3             field 4..... so on 
1       20181030154237        XYZ/ABC - Something Anything         2018-10-30 15:42:37

I don't want to write 13 regexes to extract the data. can anyone help?

0 Karma
1 Solution

Rob2520
Communicator

You can do search time field extractions pretty easy since all the fields are comma separated. Go to settings --> Fields -->Field transformations. Follow below steps.
.alt text

alt text

View solution in original post

Rob2520
Communicator

You can do search time field extractions pretty easy since all the fields are comma separated. Go to settings --> Fields -->Field transformations. Follow below steps.
.alt text

alt text

nadlurinadluri
Communicator

first question, this seems to be a comma separated data. doing indexed extractions would be a great way to start I suppose.
transforms.conf

[sourcetype]
INDEXED_EXTRACTIONS=csv
FIELD_NAMES=field1,field2,filed3.... so on

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!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

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 ...