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!

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...