Splunk Search

Lookup

Muthu_Vinith
Path Finder

Hey Experts, I'm new to splunk and I'm trying to create a new lookup from data in a index=abc. Can someone please guide me on how to achieve this? Any help or example queries would be greatly appreciated. Thank You!

Labels (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @Muthu_Vinith,

you have at first to create the lookup and the lookup definition (don't forget definition!).

Then you have to define the fields list of the new lookup from the fiels in the index and create a search, and at least create a search ending with the outputlookup command (https://docs.splunk.com/Documentation/Splunk/9.2.0/SearchReference/Outputlookup).

So you can run something like this:

index=abc
| dedup field1 field2 field3
| sort field1 field2 field3
| table field1 field2 field3
| outputlookup your_lookup.csv

Analyze the options of the outputlookup command to find the ones that you require.

Ciao.

Giuseppe

View solution in original post

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Muthu_Vinith,

you have at first to create the lookup and the lookup definition (don't forget definition!).

Then you have to define the fields list of the new lookup from the fiels in the index and create a search, and at least create a search ending with the outputlookup command (https://docs.splunk.com/Documentation/Splunk/9.2.0/SearchReference/Outputlookup).

So you can run something like this:

index=abc
| dedup field1 field2 field3
| sort field1 field2 field3
| table field1 field2 field3
| outputlookup your_lookup.csv

Analyze the options of the outputlookup command to find the ones that you require.

Ciao.

Giuseppe

0 Karma

Muthu_Vinith
Path Finder

Screenshot (180).png
How to create @gcusello ?

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Muthu_Vinith ,

you can use the Splunk Lookup Editor App ( https://splunkbase.splunk.com/app/1724 )to create the lookup.

To create the Lookup Definition, you can use the second item of the dashboard that you shared.

Ciao.

Giuseppe

0 Karma

Muthu_Vinith
Path Finder

Thanks @gcusello @ITWhisperer 

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Muthu_Vinith ,

good for you, see next time!

Ciao and happy splunking

Giuseppe

P.S.: Karma Points are appreciated by all the contributors 😉

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Muthu_Vinith ,

good for you, see next time!

let us know if we can help you more, or, please, accept one answer for the other people of Community.

Ciao and happy splunking

Giuseppe

P.S.: Karma Points are appreciated by all the contributors 😉

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Click on the Add New link?

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Create a search to find the data you want from your index, then use outputlookup to send it to a lookup source.

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