All Apps and Add-ons

not able to extract fileds

gajananh999
Contributor

Dear All,

Here is my one event

S.R. Cable TV Pvt Ltd ,Indore,Indore,Indore,Indore,01/04/2010,30/04/2010,Broadband,262,217,232, 11384,8266,8699,280,341,Direct Subs,20,172

i am able to extract all the fields accept bold letter fields in data.

i want to extract indore which is 5th field in line. but when i want to extract it is taking 2nd field as extracted field.

lly it is happening for all fields which bold in event.

Please can anyone help me on this.

Thanks
Gajanan

0 Karma
1 Solution

kristian_kolb
Ultra Champion

How do you try to extract them?
What does your config files (props/transforms) look like?

Is that a CSV formatted file? In that case, you might have a look at DELIMS;

props.conf

[your_sourcetype]
REPORT-blah = extract_stuff

transforms.con

[extract_stuff]
DELIMS = ","
FIELDS = field1, field2, field3 ...

Hope this helps,

K

View solution in original post

0 Karma

kristian_kolb
Ultra Champion

How do you try to extract them?
What does your config files (props/transforms) look like?

Is that a CSV formatted file? In that case, you might have a look at DELIMS;

props.conf

[your_sourcetype]
REPORT-blah = extract_stuff

transforms.con

[extract_stuff]
DELIMS = ","
FIELDS = field1, field2, field3 ...

Hope this helps,

K

0 Karma

gajananh999
Contributor

Thank you so much kristian,it works for me.

0 Karma

gajananh999
Contributor

Hey Kristian,
Try to extract field using field extractor

my props.conf looks like

Version 5.0.3

[splunkd]
EXTRACT-fields = (?i)^(?:[^ ]* ){2}(?:[+-]\d+ )?(?P[^ ]*)\s+(?P[^ ]+) - (?P.+)

[splunk_web_service]
EXTRACT-useragent = userAgent=(?P[^ (]+)

yes that file is in csv format

let me try your solution

Thanks
gajanan

0 Karma
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...