Splunk Search

Is there a limit on the number of events returned from the transaction?

nfieglein
Path Finder

I run this command:

index=dccmtdit sourcetype=DCCMT_Log4J_JSON | transaction DpsNum maxevents=-1

It returns: 4,999 events (before 11/11/14 11:34:05.000 AM)

I would expect the number of events returned to be the same as the distinct count of events returned by the following command:

index=dccmtdit sourcetype=DCCMT_Log4J_JSON | stats dc(DpsNum)

However, the number of events returned from the second command is:

dc(DpsNum)
45733

Is there a limit somewhere which prevents me from having all of the events in the transaction? I have various messages coming in which update the status of the event and it is possible that these messages may come in out of order.

Tags (2)
0 Karma
1 Solution

nfieglein
Path Finder

It is actually a limit of the number of open transaction handles. The parameters (also in limits.conf) is maxopentxn. Playing with this variables, though, seems to have crashed my splunkd. I think I am going to have to seek an alternative to transactions for what I want to do. I really just want to combine events which have the same ID, so maybe dedup will allow me to do that.

View solution in original post

kace
Engager

I ran into this. Try adding the "keepevicted" (boolean) option to the transaction command. In your example simply :
... | transaction DpsNum maxevents=-1 keepevicted
That got me from ~5000 to ~35000.

nfieglein
Path Finder

It is actually a limit of the number of open transaction handles. The parameters (also in limits.conf) is maxopentxn. Playing with this variables, though, seems to have crashed my splunkd. I think I am going to have to seek an alternative to transactions for what I want to do. I really just want to combine events which have the same ID, so maybe dedup will allow me to do that.

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!

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

Ready to make your IT operations smarter and more efficient? Discover how to automate Splunk alerts with Red ...