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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...