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!

Cultivate Your Career Growth with Fresh Splunk Training

Growth doesn’t just happen—it’s nurtured. Like tending a garden, developing your Splunk skills takes the right ...

Introducing a Smarter Way to Discover Apps on Splunkbase

We’re excited to announce the launch of a foundational enhancement to Splunkbase: App Tiering.  Because we’ve ...

How to Send Splunk Observability Alerts to Webex teams in Minutes

As a Developer Evangelist at Splunk, my team and I are constantly tinkering with technology to explore its ...