<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic User session exports to Elasticsearch 8 in Real User Monitoring</title>
    <link>https://community.dynatrace.com/t5/Real-User-Monitoring/User-session-exports-to-Elasticsearch-8/m-p/181092#M3530</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We trying to use "user Session export" with&amp;nbsp; Elasticsearch 8 referring to&amp;nbsp; User session export feature:&lt;/P&gt;
&lt;DIV class=""&gt;&lt;A href="https://www.dynatrace.com/support/help/shortlink/session-export-http" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.dynatrace.com/support/help/shortlink/session-export-http&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;We got automaticly the 400 error when we try the export test.&lt;BR /&gt;After some searches, we found that Elasticsearch 8 no longer use&amp;nbsp;mapping types. So if we send a sample export data like this :&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;&lt;SPAN&gt;{ "index" : { "_index" : "my-index", "_type" : "_doc", "_id" : "umsaywsjuo-744377345-1622107543233" } }&lt;BR /&gt;{"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,"..................................................&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;&lt;SPAN&gt;Elasticsearch reject the data because --&amp;gt; "_type" : "_doc"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;If we remove "_type":"_doc" from the data, so the Data are accepted by the server.&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;All data automaticly sent by Dynatrace include : "_type":"_doc"&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;So is there any solution to remove "_type":"_doc" ?&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;Thanks for your help.&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Feb 2022 08:28:53 GMT</pubDate>
    <dc:creator>ydr</dc:creator>
    <dc:date>2022-02-22T08:28:53Z</dc:date>
    <item>
      <title>User session exports to Elasticsearch 8</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/User-session-exports-to-Elasticsearch-8/m-p/181092#M3530</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We trying to use "user Session export" with&amp;nbsp; Elasticsearch 8 referring to&amp;nbsp; User session export feature:&lt;/P&gt;
&lt;DIV class=""&gt;&lt;A href="https://www.dynatrace.com/support/help/shortlink/session-export-http" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.dynatrace.com/support/help/shortlink/session-export-http&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;We got automaticly the 400 error when we try the export test.&lt;BR /&gt;After some searches, we found that Elasticsearch 8 no longer use&amp;nbsp;mapping types. So if we send a sample export data like this :&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;&lt;SPAN&gt;{ "index" : { "_index" : "my-index", "_type" : "_doc", "_id" : "umsaywsjuo-744377345-1622107543233" } }&lt;BR /&gt;{"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,"..................................................&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;&lt;SPAN&gt;Elasticsearch reject the data because --&amp;gt; "_type" : "_doc"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;If we remove "_type":"_doc" from the data, so the Data are accepted by the server.&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;All data automaticly sent by Dynatrace include : "_type":"_doc"&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;So is there any solution to remove "_type":"_doc" ?&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;Thanks for your help.&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 08:28:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/User-session-exports-to-Elasticsearch-8/m-p/181092#M3530</guid>
      <dc:creator>ydr</dc:creator>
      <dc:date>2022-02-22T08:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: User session exports to Elasticsearch 8</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/User-session-exports-to-Elasticsearch-8/m-p/181115#M3531</link>
      <description>&lt;P&gt;You could send the output through logstash, remove the field and then output to elasticsearch. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filter {&lt;BR /&gt;&amp;nbsp; mutate {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; remove_field =&amp;gt; [ "_type" ]&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 18:17:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/User-session-exports-to-Elasticsearch-8/m-p/181115#M3531</guid>
      <dc:creator>mgome</dc:creator>
      <dc:date>2022-02-21T18:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: User session exports to Elasticsearch 8</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/User-session-exports-to-Elasticsearch-8/m-p/231502#M5524</link>
      <description>&lt;P&gt;Since I just got the same problem, I'll share an update for the solution that I found&lt;BR /&gt;As explained in the doc below, you just need to keep the field "&lt;SPAN&gt;Type of documents in the Elasticsearch index"&amp;nbsp;&lt;/SPAN&gt;in the setting empty. Elastic 8 will not reject it anymore&lt;BR /&gt;&lt;A href="https://docs.dynatrace.com/docs/platform-modules/digital-experience/session-segmentation/export-session-data" target="_blank"&gt;https://docs.dynatrace.com/docs/platform-modules/digital-experience/session-segmentation/export-session-data&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 17:23:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/User-session-exports-to-Elasticsearch-8/m-p/231502#M5524</guid>
      <dc:creator>Candra</dc:creator>
      <dc:date>2023-12-11T17:23:42Z</dc:date>
    </item>
  </channel>
</rss>

