Getting Data In

EXTRACT source field in props.conf has 'period'

Dworsnop
Path Finder

Hi all,

I've been trying to get an EXTRACT to work in a TA that someone has made for me and after much searching I have narrowed the problem down to the fact that the source field is "model.name". According to the props.conf docs, the source must be alphanumerical or an underscore, the docs also say that the source cannot be derived from a filed alias etc.

 

[mysourcetype]

...

EXTRACT-CIM_category = ^(?<category>.*):: in model.name

 

What is the best way therefore, to perform the regex extraction at search time on that field if I can't alias it? The docs say it can come from an preceding EXTRACT but what would the syntax be to rename the field to something like "model_name"? And how would this work because surely my source is always going to have the period in, which is incompatible with EXTRACT?

Many thanks in advance.

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Have you tried not using the IN keyword and matching against _raw?  You may need to modify the regex for it work against _raw.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Have you tried not using the IN keyword and matching against _raw?  You may need to modify the regex for it work against _raw.

---
If this reply helps you, Karma would be appreciated.

Dworsnop
Path Finder

Thanks @richgalloway that's worked!

0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

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