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!

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...