Getting Data In

rename field name in lookup table with outputlookup command

newsplunker2024
Explorer

Hi,

I want to rename the fields while writing to a lookup table using outputlookup command. Is there a way to do it?

I intend to use the lookup table in the next run of the same query so want separate field names in lookup table.

Thanks in advance for the suggestions.

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Why can't you just rename it before the outputlookup and rename it back afterwards?

Please expand on your usecase

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Why can't you just rename it before the outputlookup and rename it back afterwards?

Please expand on your usecase

0 Karma

newsplunker2024
Explorer

Yeah, that is an option as well. However, thought it would be easier if there was an option to rename the fields while writing to the lookup table.

I did an AI search which showed outputlookup had a rename option, but couldn't find it in the syntax on splunk website. So was just curious as well, if it is possible at all.

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Yes, AI can be good at making stuff up! 😀

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