Splunk Search

Configuring dbx tail input on very large table. (70,000,000+ rows)

johnebgood
Path Finder

I was able to get the input to work but it would be nice to start the tail from a specified value when the input is configured. I don't want to input all 70,000,000 rows on the first run... I just want the data from the last day or so as I would blow up our license since I have to do this for 20+ databases with similarly sized tables. Any ideas on how to do this?

Tags (2)
1 Solution

hirsts
Path Finder

Creating the monitor with initial SQL to return one row only, updating the state.xml and then remove the 1 row limit worked fine. I did not need to restart Splunk as the state.xml file is read each time the monitor is run.

hirsts
Path Finder

I've tied this and the state.xml file is only created after the first run of the monitor. In my the case the first run returned lots of rows which then seem to get batch inserting into the indexing queues as the state.xml files keeps changing until the backlog is indexed.

I'm going to try creating the monitor with SQL that only returns 1 row at a time, disable the monitor, modify the state.xml, modify the SQL to return all the required rows then re-enable the monitor.

0 Karma

johnebgood
Path Finder

Note, after you create the new database monitor immediately disable it and go and edit the state.xml file. I have been copying the state.xml from previously configured monitors, makes it fairly easy.

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...