Splunk Dev

Help with a query using an index and a lookup table.

pstamati
Path Finder

Hello!

I have and index with help desk ticket data, Ticket ID, status among other fields. I also have a lookup table with specific Ticket IDs for which I'd like to query the ticket index to get specific fields from it. How can I build that search?

Example:
Index=Tickets
ChangeID Requestor Status
CRQ000001230099 User 1 Open
CRQ000001230100 User 2 Pending
CRQ000001230101 User 3 Close
CRQ000001230102 User 4 Open
CRQ000001230103 User 5 Pending
CRQ000001230104 User 6 Close
CRQ000001230105 User 7 Open
CRQ000001230106 User 8 Pending

Lookup Special Tickets

ChangeID Control
CRQ000001230100 G22
CRQ000001230102 G24
CRQ000001230103 G25
CRQ000001230105 G27

I want to run a search that returns for every ticket ID in the lookup, Requestor and Status fields from the Index.
Can you help me with this?

Thanks in advance for any assistance you can provide

Tags (1)
0 Karma
1 Solution

somesoni2
Revered Legend

Try like this

index=Tickets [| inputlookup YourLooupTableName.csv | table ChangeID ]
| table ChangeID Requestor Status

View solution in original post

0 Karma

macadminrohit
Contributor

index=Tickets [ | inputlookup lookup.csv | fields ChangeID ] | table ChangeID Requestor Status

0 Karma

somesoni2
Revered Legend

Try like this

index=Tickets [| inputlookup YourLooupTableName.csv | table ChangeID ]
| table ChangeID Requestor Status
0 Karma

pstamati
Path Finder

Many thanks!!

0 Karma

xpac
SplunkTrust
SplunkTrust

Changing the first table to fields should yield the same results, but be faster (with large lookups). 🙂

0 Karma
Get Updates on the Splunk Community!

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

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...