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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...