Splunk Search

Can a field extraction and lookup share the same field name?

carmackd
Communicator

Is it possible for a field generated by an automatic lookup to share the same name as a field generated by an extraction?

For example, I have a signature_id field, which is fed into a lookup table and returns a field called signature. Not every event has a signature_id so I need to use a field extraction on the same log source to pull signature values. This extracted field would also be called signature.

So far I haven't been able to do this. I've extracted the signature values fine, and the lookup table returns the values as it should, but I can not name them both signature. Is there a configuration that would allow me to do this?

Tags (1)
1 Solution

gkanapathy
Splunk Employee
Splunk Employee

You can, but by default the lookup will not overwrite a target field if it already exists in the event. You can make it do the overwrite by using OUTPUTNEW rather than OUTPUT when defining the lookup.

View solution in original post

gkanapathy
Splunk Employee
Splunk Employee

You can, but by default the lookup will not overwrite a target field if it already exists in the event. You can make it do the overwrite by using OUTPUTNEW rather than OUTPUT when defining the lookup.

carmackd
Communicator

Thanks! worked like a charm

0 Karma
Get Updates on the Splunk Community!

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to Officially Supported Splunk ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...