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!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...