I would like to add a keyword in my Splunk queries that would make the query timeout/error after a while (separate from the server setting). Is there such a keyword?
As a general case, there is already a length after which search queries will time out.
See the answer here for details about how that works (although the question there is the reverse of yours ) - https://answers.splunk.com/answers/196/how-do-i-increase-the-session-timeout-settings-in-the-config-...
Whats your requirement here?