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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...