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!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...