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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...