Splunk Search

How to add keepevicted=true in the datamodel or the query which uses datamodel (Data model has a transaction)?

Kukkadapu
Path Finder

Hi, I've created a datamodel which has a TRANSACTION. When I try to use the datamodel query for a longer period of time say 7 days , I'm seeing the following error.

Some transactions have been discarded.
To include them, add keepevicted=true
to your transaction command.

Query Used -

| datamodel abc abc_Transaction search
| search xyz

How to add keepevicted=true to the transaction command in the datamodel?

Thanks.

0 Karma

gokadroid
Motivator

Can you try and see if you can edit the data model.

You need to go to the data model "abc" and see the element which uses the transaction command. In the edit search section of the element with the transaction command you just have to append keepevicted=true . For example in abc data model if childElementA had the constraint search as transaction sessionId then the constraint search should change as transaction sessionId keepevicted=true. Save the element and the data model and try to run the search again to see it work.

0 Karma

Kukkadapu
Path Finder

Hi, I've opened the datamodel via UI. I don't see transaction xxx , to add keepevicted=true. Can you elaborate where to add the keepevicted ?

Thanks

Get Updates on the Splunk Community!

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...