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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...