Splunk Search

How can I create lookup table file(csv file) automatically?

tkdguq0110
Path Finder

I just want to create csv file automatically everyday

for example, today just is created 20200417.csv
tomorrow will be created 20200418.csv ...

Is it possible??

Tags (1)
0 Karma
1 Solution

manjunathmeti
Champion

You can use map command and get the data in csv using below query. You can append OR join below query with your main search.

| makeresults | eval date = strftime(now(), "%Y%m%d") | map search="| inputlookup $date$.csv"

tkdguq0110
Path Finder

thanks for your help!

0 Karma

tkdguq0110
Path Finder

thanks for your help!

0 Karma
Get Updates on the Splunk Community!

SOCin’ it to you at Splunk University

Splunk University is expanding its instructor-led learning portfolio with dedicated Security tracks at .conf25 ...

Credit Card Data Protection & PCI Compliance with Splunk Edge Processor

Organizations handling credit card transactions know that PCI DSS compliance is both critical and complex. The ...

Stay Connected: Your Guide to July Tech Talks, Office Hours, and Webinars!

What are Community Office Hours?Community Office Hours is an interactive 60-minute Zoom series where ...