cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

User session exports to Elasticsearch 8

ydr
Newcomer

Hello,

 

We trying to use "user Session export" with  Elasticsearch 8 referring to  User session export feature:

We got automaticly the 400 error when we try the export test.
After some searches, we found that Elasticsearch 8 no longer use mapping types. So if we send a sample export data like this :
 
{ "index" : { "_index" : "my-index", "_type" : "_doc", "_id" : "umsaywsjuo-744377345-1622107543233" } }
{"tenantId":"umsaywsjuo","userSessionId":"744377345","startTime":1622107543233,"endTime":1622107578205,"duration":34972,"internalUserId":"744377345","userType":"SYNTHETIC","applicationType":"WEB_APPLICATION","bounce":false,"newUser":true,"userActionCount":12,"totalErrorCount":5,"totalLicenseCreditCount":0,"matchingConversionGoalsCount":0,"..................................................
 
Elasticsearch reject the data because --> "_type" : "_doc"
 
If we remove "_type":"_doc" from the data, so the Data are accepted by the server.
 
All data automaticly sent by Dynatrace include : "_type":"_doc"
 
So is there any solution to remove "_type":"_doc" ?
 
Thanks for your help.
 
 
 
 

 

1 REPLY 1

mgome
Helper

You could send the output through logstash, remove the field and then output to elasticsearch.  

 

filter {
  mutate {
    remove_field => [ "_type" ]
  }
}