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!

Stay Connected: Your Guide to July Tech Talks, Office Hours, and Webinars!

What are Community Office Hours?Community Office Hours is an interactive 60-minute Zoom series where ...

Updated Data Type Articles, Anniversary Celebrations, and More on Splunk Lantern

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

A Prelude to .conf25: Your Guide to Splunk University

Heading to Boston this September for .conf25? Get a jumpstart by arriving a few days early for Splunk ...