Getting Data In

How can I increase the output count limit for the command.script component?

ctaf
Contributor

Hi,

I have a search that is using the "script" command but this search is exceeding a limit as you can see:
here

Is there a way to increase this limit?
I tried maxinputs of the commands.conf file but without any luck.

Any guess?
Thank you.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi ctaf,
could you share your search? because maybe the problem is in another parameter (e.g. sort is limited to 10k events) and there are other parameters to set (e.g. maxresultrows or maxresultrows or subsearch_maxout in join, etc...) in limits.conf.
Bye.
Giuseppe

0 Karma

ctaf
Contributor

It's quite simple:

 search index=XXX | table XXXX  | stats XXX | lookup XXX | script python YYYY arg 

There is no join or sort...

I saw maxresultrows but there is no "script" stanza...

0 Karma

gcusello
SplunkTrust
SplunkTrust

if you don't use script command, have you always the same limit?
in addition, you don't need to use the table command before a stats command (it only reduces speed of your search).
Bye.
Giuseppe

0 Karma

ctaf
Contributor

There is no command.script component if I don't use it...

0 Karma

gcusello
SplunkTrust
SplunkTrust

Have you seen the limits in command.conf file for your script use?
There are:

maxinputs = <integer>
* Maximum number of events that can be passed to the command for each
  invocation.
* This limit cannot exceed the value of maxresultrows in limits.conf.
* 0 for no limit.
* Defaults to 50000.

.

maximum data that can be passed to command (0 = no limit)
MAXINPUTS = 50000

Bye.
Giuseppe

0 Karma

ctaf
Contributor

Giuseppe,

As I wrote on my original post, I already tried it.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...