Getting Data In

Is there a way to use some sort of regular expression with field aliases?

ddrillic
Ultra Champion

Is there a way to simply the props.conf configurations and do the following in one command -

FIELDALIAS-alias01 = "apiRequest.reqHeader.appContext" AS appContext
FIELDALIAS-alias02 = "apiRequest.reqHeader.dob" AS dob
FIELDALIAS-alias03 = "apiRequest.reqHeader.encryptedUserName" AS encryptedUserName
FIELDALIAS-alias04 = "apiRequest.reqHeader.firstName" AS firstName
FIELDALIAS-alias05 = "apiRequest.reqHeader.lastName" AS lastName
Tags (2)
0 Karma

splunker12er
Motivator

wild cards are not supported in FIELDALIAS attribute. Try this REPORT method

props.conf

 [yourSourceType]
 REPORT-extractrequestheaders = extract_req_headers

transforms.conf

[extract_req_headers]
 REGEX = <use regex group match your field and values>
 FORMAT = $1::$2
 REPEAT_MATCH = true

thanks

ddrillic
Ultra Champion
0 Karma

p_gurav
Champion

Can you try :

 FIELDALIAS-alias = apiRequest.reqHeader.* AS *
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...