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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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