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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...