Splunk Search

splunk

DougiieDee
Explorer

I have a csv file which has field Account and it has over 1000+. In my logs it is named as yourAccount. how do i find the all the account logs from that csv file. Also can i rex the field and have the table for that as well in same query?

Labels (4)
0 Karma

DougiieDee
Explorer

yourAccount  isnt a field name i have to regex it. Can i rex field yourAccount and search with only the account that i have in csv file?

 

0 Karma

SanjayReddy
SplunkTrust
SplunkTrust

Hi @DougiieDee 

you can try to rename the Account field in csv to yourAccount  to get the all results from both fields.

example

index=foo sourcetype=bar | table yourAccount 
| lookup file.csv Account as yourAccount 

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...