Splunk Search

fields that begin with a number

alexl1
Path Finder

I have a bunch of fields that begin with a number, which Splunk doesn't allow, is there a way to put an alpha character in front in props.conf so they get indexed?

Tags (1)
0 Karma
1 Solution

alexl1
Path Finder

props.conf

[my_sourcetype]
REPORT-cleanupkeys = clean_my_keys

transforms.conf

[clean_my_keys]
REGEX = ^([^=]*)=([^\n]*)
FORMAT = $1::$2
CLEAN_KEYS = false

View solution in original post

0 Karma

alexl1
Path Finder

props.conf

[my_sourcetype]
REPORT-cleanupkeys = clean_my_keys

transforms.conf

[clean_my_keys]
REGEX = ^([^=]*)=([^\n]*)
FORMAT = $1::$2
CLEAN_KEYS = false
0 Karma

kristian_kolb
Ultra Champion

Hi, i think you can keep your fields with the starting with a number, if you use a REPORT transform for the extraction, and set CLEAN_KEYS = false

http://docs.splunk.com/Documentation/Splunk/5.0.2/Knowledge/Createandmaintainsearch-timefieldextract...
http://docs.splunk.com/Documentation/Splunk/5.0.2/Knowledge/Createandmaintainsearch-timefieldextract...

/K

0 Karma

alexl1
Path Finder

is there a way to do it at the indexing layer?

0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...