Splunk Search

How to extract field for the data with spaces

sumanth_isac
Path Finder

Hi I have data as below.

9B 85 65 70 20 61 6C 69 76 65 2C 33 30 30 30 30 3C 00 is one pattern

9B 85 65 70 20 61 6C 69 76 65 2C 33 30 30 30 30 3C is the other pattern

How can i extract the field for this recurring events

0 Karma

btt
Path Finder

write a search with regular expression
try this one

...|rex "(?i)(?P<FIELDNAME>[\d\w\s]+)"|...
0 Karma

btt
Path Finder

Hi
write a search with regular expression
try this one

...|rex "(?i)(?P<FIELDNAME>[\d\w\s]+[^ ]+)"|...
0 Karma

akanno
Communicator

Hi,sumanth_isac

your props.conf

[your_sourcetype]
REPORT-AutoHeader = AutoHeader-my_sourcetype

your transforms.conf

[AutoHeader-my_sourcetype]
DELIMS = ” ”
FIELDS = “field1”,”field2”,”field3”, …

For more information, see below link
http://splunkblog.vccorp.net/?p=428

Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...