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!

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...