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!

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...