Splunk Search

Is there a limitation in the length of a search?

patricknguyen
Explorer

Hello,

I have a long Splunk search that I continue to add more conditions to each day so it keeps growing. Eventually, when my search starts to reach 25K long, it starts to fail. The browsers (both Firefox and Chrome) get disconnected from Splunk search head and fails every time I run the search. My question is whether any limitation in the search length that I can run on Splunk, and what is the limitation if any?

If there is no limitation, then I wonder if this is relating to browser itself, though I've been trying both Chrome and Firefox and they both fails with the same condition above.

Thanks,
-Patrick

0 Karma
1 Solution

somesoni2
Revered Legend

YOu'll reach your browser limit before you'll reach Splunk's. Try to save your long search as saved search and try to use | savedsearch yoursavedsearchname to run it.

View solution in original post

DalJeanis
Legend

Okay, when your SEARCH gets to 25K long, it seems like you need to be looking for a new data model. Consider (meta)tagging your data with useful subsets of your search criteria.

0 Karma

gfreitas
Builder

I would suggest creating macros to make the search smaller. It`s very common to have huge searches but using macros to make them smaller. You can use for example a macro inside the other and make things easier for you.

0 Karma

somesoni2
Revered Legend

YOu'll reach your browser limit before you'll reach Splunk's. Try to save your long search as saved search and try to use | savedsearch yoursavedsearchname to run it.

patricknguyen
Explorer

Thank you all for your recommendations. I've been able to do "savedsearch <24K query> | search " to bypass browser limitation and get Splunk to process the search successfully per somesoni2 suggestion.

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 ...