Splunk Search

Can I schedule a search that writes to a lookup table?

ilhwan
Path Finder

I have a search that writes to a lookup table.  I would like to run this search once a month and update (overwrite) the lookup table.  I see that I can schedule reports, dashboards, and alerts.  Is it possible to do it with a search that writes to a lookup table file?

Labels (1)
0 Karma
1 Solution

johnhuang
Motivator

You can do this with schedule report or alert. As long as you have an outputlookup in the query, it should update the lookup.

View solution in original post

0 Karma

johnhuang
Motivator

Just add the outputlook command to the end of your search query.

| outputlookup <lookup_file_name>.csv

 

0 Karma

ilhwan
Path Finder

That is part of the search I run manually to update the lookup table.  I'm trying to figure out how to schedule it to run monthly.

0 Karma

johnhuang
Motivator

You can do this with schedule report or alert. As long as you have an outputlookup in the query, it should update the lookup.

0 Karma

ilhwan
Path Finder

Thank you.  I was confused by the wording.  I thought my search had to output a report or a dashboard.

0 Karma
Get Updates on the Splunk Community!

Splunk Lantern | Spotlight on Security: Adoption Motions, War Stories, and More

Splunk Lantern is a customer success center that provides advice from Splunk experts on valuable data ...

Splunk Cloud | Empowering Splunk Administrators with Admin Config Service (ACS)

Greetings, Splunk Cloud Admins and Splunk enthusiasts! The Admin Configuration Service (ACS) team is excited ...

Tech Talk | One Log to Rule Them All

One log to rule them all: how you can centralize your troubleshooting with Splunk logs We know how important ...