Recovering sessions via the API
search cancel

Recovering sessions via the API

book

Article ID: 393227

calendar_today

Updated On:

Products

DX SaaS CA App Experience Analytics

Issue/Introduction

We attempted to recover sessions via the API We are using following :

Rest API best practices

Resolution

The events.timestamp field is not valid for using the session api. It works only for events api. Please ask customer to use the below fields for time range to query sessions data

(session_start or session_end).

 

Example request:

{
  "query": {
    "bool": {
    "filter": [
{
          "range": {
            "session_start": {
              "gte": "1573431731526",
              "lte": "1773433759643",
              "format": "epoch_millis"
            }
          }
        },
        
        { "query_string": { "analyze_wildcard": true, "query": "*"}}
     ]
   }
  }
}

Additional Information

If no data is returned, it may be because AXA Session data in SAAS is only retained 45 days,