Getting Data In

How to assign a field alias to a json field?

ddrillic
Ultra Champion

We have the following in props.conf -

FIELDALIAS-alias1 = apiRequest.apiInfo.clientID AS clientID

It doesn't seem to do what we had in mind meaning to alias apiRequest.apiInfo.clientID as clientID.

0 Karma
1 Solution

rsennett_splunk
Splunk Employee
Splunk Employee

it's always safe to enclose a field with special characters in single or double quotes.

With Splunk... the answer is always "YES!". It just might require more regex than you're prepared for!

View solution in original post

0 Karma

rsennett_splunk
Splunk Employee
Splunk Employee

it's always safe to enclose a field with special characters in single or double quotes.

With Splunk... the answer is always "YES!". It just might require more regex than you're prepared for!
0 Karma

ddrillic
Ultra Champion

Makes perfect sense @rsennett.

0 Karma

ddrillic
Ultra Champion

When we do the same exact thing from the UI, the UI adds double-quotes. I guess we need to do the same thing in props.conf.

0 Karma
Get Updates on the Splunk Community!

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

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...