Check this out this is one of the best example.
https://splunkonbigdata.com/2020/07/22/lookups-lookup-definition-and-automatic-lookup/
--------------------------------------------------------
If this helps your like will be appreciated😊
Hi @ashvin123 ... @vikramyadav 's link is a superb one.
Adding to that.. for other future newbie's, let me start from lookup -
Step 1 - learn a basic lookup file.
Step 2 - creating a lookup definition.
Step 3 - automating the lookup(your query)
Splunk's youtube channel got this video:
https://www.youtube.com/watch?v=42nWPmzbYCk
this is a simple example -
https://docs.splunk.com/Documentation/Splunk/8.1.0/Knowledge/ConfigureCSVlookups#CSV_lookup_example
Check this out this is one of the best example.
https://splunkonbigdata.com/2020/07/22/lookups-lookup-definition-and-automatic-lookup/
--------------------------------------------------------
If this helps your like will be appreciated😊