Splunk Search

Do you have a plan to support multi character for field extractor

gimapei
New Member

Hi my Name is JaeHyun, Cho
I lives in korea.

my question is why splunk not allow multi charactor fields?

some clients complained about that!

they want to use a Multi charator fields likes "782222-INP"

do you have a plan ????

sorry about my pure english

thank you

0 Karma
1 Solution

somesoni2
Revered Legend

Splunk doesn't support special characters other than underscore ("_") in the field names. You can replace your hypher ("-") with that. Other than that the format your specify does work. See this run-anywhere example.

|stats count | eval message="This is field Extraction Test" | table message | rex field=message "^(?<782222_INP>[^\s]+)" | rex field=message "^([^\s]+\s){1}(?<78222dfd____2_INP>[^\s]+)" | rex field=message "^([^\s]+\s){2}(?<INP_782222_>[^\s]+)"| rex field=message "^([^\s]+\s){3}(?<12_782222_INP>[^\s]+)" | rex field=message "^([^\s]+\s){4}(?<AbCd_782222_INP>[^\s]+)"

View solution in original post

0 Karma

somesoni2
Revered Legend

Splunk doesn't support special characters other than underscore ("_") in the field names. You can replace your hypher ("-") with that. Other than that the format your specify does work. See this run-anywhere example.

|stats count | eval message="This is field Extraction Test" | table message | rex field=message "^(?<782222_INP>[^\s]+)" | rex field=message "^([^\s]+\s){1}(?<78222dfd____2_INP>[^\s]+)" | rex field=message "^([^\s]+\s){2}(?<INP_782222_>[^\s]+)"| rex field=message "^([^\s]+\s){3}(?<12_782222_INP>[^\s]+)" | rex field=message "^([^\s]+\s){4}(?<AbCd_782222_INP>[^\s]+)"
0 Karma
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

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 ...