<?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 How to get data in whit elasticsearch-data-integrator app? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-get-data-in-whit-elasticsearch-data-integrator-app/m-p/577476#M75680</link>
    <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;We need to configure the TA-elasticsearch-data-integrator---modular-input app and we receive data.&lt;BR /&gt;The problem is : we do receive data, but not all...&lt;/P&gt;
&lt;P&gt;here is the app conf:&lt;/P&gt;
&lt;PRE&gt;Name ALogName&lt;BR /&gt;Intervalle 3600&lt;BR /&gt;Index MyIndex&lt;BR /&gt;Statut Activated&lt;BR /&gt;Elasticsearch instance URL: MyName&lt;BR /&gt;Port #: MyPort&lt;BR /&gt;Use SSL 1&lt;BR /&gt;Verify Certs 1&lt;BR /&gt;CA Certs Path: /my/ca.pem&lt;BR /&gt;User: MyUser&lt;BR /&gt;Secret / Password: MyPassword&lt;BR /&gt;Elasticsearch Indice: MyIndice&lt;BR /&gt;Elasticsearch Date field name: @timestamp&lt;BR /&gt;Time Preset: 30d&lt;BR /&gt;Custom Source Type: json &lt;/PRE&gt;
&lt;P&gt;If i use CLI, with the exact same configuration, except i use match, I receive the good datas.&lt;/P&gt;
&lt;PRE&gt;curl -u "MyUser:MyPassword" -k "https://MyName:MyPort/MyIndice/_search?&amp;amp;scroll=1m&amp;amp;size=1000" -H 'Content-Type: application/json' -d'{"query": {"match": {"message": "MyMessage"}}, "sort": { "@timestamp": "desc" }}'&lt;BR /&gt;{"_scroll_id":"[...]","took":695,"timed_out":false,"_shards":{"total":8,"successful":8,"skipped":0,"failed":0},"hits":{"total":{"value":3,"relation":"eq"},"max_score":null,"hits":[...MyData...]&lt;/PRE&gt;
&lt;P&gt;here is the logs of the app:&lt;/P&gt;
&lt;PRE&gt;2021-12-06 13:29:00,073 INFO pid=26584 tid=MainThread file=base.py:log_request_success:271 | POST https://MyName:MyPort/MyIndice/_search?scroll=2m&amp;amp;size=1000 [status:200 request:0.870s]&lt;BR /&gt;2021-12-06 13:37:12,701 WARNING pid=26584 tid=MainThread file=base.py:log_request_fail:299 | POST https://MyName:MyPort/_search/scroll [status:404 request:0.076s]&lt;BR /&gt;2021-12-06 13:37:12,703 INFO pid=26584 tid=MainThread file=base.py:log_request_success:271 | DELETE https://MyName:MyPort/_search/scroll [status:404 request:0.002s]&lt;BR /&gt;2021-12-06 13:37:12,705 ERROR pid=26584 tid=MainThread file=base_modinput.py:log_error:309 | Get error when collecting events.&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/opt/splunk/etc/apps/TA-elasticsearch-data-integrator---modular-input/bin/ta_elasticsearch_data_integrator_modular_input/aob_py3/modinput_wrapper/base_modinput.py", line 128, in stream_events&lt;BR /&gt;self.collect_events(ew)&lt;BR /&gt;File "/opt/splunk/etc/apps/TA-elasticsearch-data-integrator---modular-input/bin/elasticsearch_json.py", line 104, in collect_events&lt;BR /&gt;input_module.collect_events(self, ew)&lt;BR /&gt;File "/opt/splunk/etc/apps/TA-elasticsearch-data-integrator---modular-input/bin/input_module_elasticsearch_json.py", line 109, in collect_events&lt;BR /&gt;for doc in res:&lt;BR /&gt;File "/opt/splunk/etc/apps/TA-elasticsearch-data-integrator---modular-input/bin/ta_elasticsearch_data_integrator_modular_input/elasticsearch/helpers/actions.py", line 589, in scan&lt;BR /&gt;body={"scroll_id": scroll_id, "scroll": scroll}, **scroll_kwargs&lt;BR /&gt;File "/opt/splunk/etc/apps/TA-elasticsearch-data-integrator---modular-input/bin/ta_elasticsearch_data_integrator_modular_input/elasticsearch/client/utils.py", line 168, in _wrapped&lt;BR /&gt;return func(*args, params=params, headers=headers, **kwargs)&lt;BR /&gt;File "/opt/splunk/etc/apps/TA-elasticsearch-data-integrator---modular-input/bin/ta_elasticsearch_data_integrator_modular_input/elasticsearch/client/__init__.py", line 1513, in scroll&lt;BR /&gt;"POST", "/_search/scroll", params=params, headers=headers, body=body&lt;BR /&gt;File "/opt/splunk/etc/apps/TA-elasticsearch-data-integrator---modular-input/bin/ta_elasticsearch_data_integrator_modular_input/elasticsearch/transport.py", line 415, in perform_request&lt;BR /&gt;raise e&lt;BR /&gt;File "/opt/splunk/etc/apps/TA-elasticsearch-data-integrator---modular-input/bin/ta_elasticsearch_data_integrator_modular_input/elasticsearch/transport.py", line 388, in perform_request&lt;BR /&gt;timeout=timeout,&lt;BR /&gt;File "/opt/splunk/etc/apps/TA-elasticsearch-data-integrator---modular-input/bin/ta_elasticsearch_data_integrator_modular_input/elasticsearch/connection/http_urllib3.py", line 275, in perform_request&lt;BR /&gt;self._raise_error(response.status, raw_data)&lt;BR /&gt;File "/opt/splunk/etc/apps/TA-elasticsearch-data-integrator---modular-input/bin/ta_elasticsearch_data_integrator_modular_input/elasticsearch/connection/base.py", line 331, in _raise_error&lt;BR /&gt;status_code, error_message, additional_info&lt;BR /&gt;elasticsearch.exceptions.NotFoundError: NotFoundError(404, 'search_phase_execution_exception', 'No search context found for id [9884105]')&lt;/PRE&gt;
&lt;P&gt;Any help would be great, thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2023 16:09:11 GMT</pubDate>
    <dc:creator>Expl</dc:creator>
    <dc:date>2023-08-09T16:09:11Z</dc:date>
    <item>
      <title>How to get data in whit elasticsearch-data-integrator app?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-get-data-in-whit-elasticsearch-data-integrator-app/m-p/577476#M75680</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;We need to configure the TA-elasticsearch-data-integrator---modular-input app and we receive data.&lt;BR /&gt;The problem is : we do receive data, but not all...&lt;/P&gt;
&lt;P&gt;here is the app conf:&lt;/P&gt;
&lt;PRE&gt;Name ALogName&lt;BR /&gt;Intervalle 3600&lt;BR /&gt;Index MyIndex&lt;BR /&gt;Statut Activated&lt;BR /&gt;Elasticsearch instance URL: MyName&lt;BR /&gt;Port #: MyPort&lt;BR /&gt;Use SSL 1&lt;BR /&gt;Verify Certs 1&lt;BR /&gt;CA Certs Path: /my/ca.pem&lt;BR /&gt;User: MyUser&lt;BR /&gt;Secret / Password: MyPassword&lt;BR /&gt;Elasticsearch Indice: MyIndice&lt;BR /&gt;Elasticsearch Date field name: @timestamp&lt;BR /&gt;Time Preset: 30d&lt;BR /&gt;Custom Source Type: json &lt;/PRE&gt;
&lt;P&gt;If i use CLI, with the exact same configuration, except i use match, I receive the good datas.&lt;/P&gt;
&lt;PRE&gt;curl -u "MyUser:MyPassword" -k "https://MyName:MyPort/MyIndice/_search?&amp;amp;scroll=1m&amp;amp;size=1000" -H 'Content-Type: application/json' -d'{"query": {"match": {"message": "MyMessage"}}, "sort": { "@timestamp": "desc" }}'&lt;BR /&gt;{"_scroll_id":"[...]","took":695,"timed_out":false,"_shards":{"total":8,"successful":8,"skipped":0,"failed":0},"hits":{"total":{"value":3,"relation":"eq"},"max_score":null,"hits":[...MyData...]&lt;/PRE&gt;
&lt;P&gt;here is the logs of the app:&lt;/P&gt;
&lt;PRE&gt;2021-12-06 13:29:00,073 INFO pid=26584 tid=MainThread file=base.py:log_request_success:271 | POST https://MyName:MyPort/MyIndice/_search?scroll=2m&amp;amp;size=1000 [status:200 request:0.870s]&lt;BR /&gt;2021-12-06 13:37:12,701 WARNING pid=26584 tid=MainThread file=base.py:log_request_fail:299 | POST https://MyName:MyPort/_search/scroll [status:404 request:0.076s]&lt;BR /&gt;2021-12-06 13:37:12,703 INFO pid=26584 tid=MainThread file=base.py:log_request_success:271 | DELETE https://MyName:MyPort/_search/scroll [status:404 request:0.002s]&lt;BR /&gt;2021-12-06 13:37:12,705 ERROR pid=26584 tid=MainThread file=base_modinput.py:log_error:309 | Get error when collecting events.&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/opt/splunk/etc/apps/TA-elasticsearch-data-integrator---modular-input/bin/ta_elasticsearch_data_integrator_modular_input/aob_py3/modinput_wrapper/base_modinput.py", line 128, in stream_events&lt;BR /&gt;self.collect_events(ew)&lt;BR /&gt;File "/opt/splunk/etc/apps/TA-elasticsearch-data-integrator---modular-input/bin/elasticsearch_json.py", line 104, in collect_events&lt;BR /&gt;input_module.collect_events(self, ew)&lt;BR /&gt;File "/opt/splunk/etc/apps/TA-elasticsearch-data-integrator---modular-input/bin/input_module_elasticsearch_json.py", line 109, in collect_events&lt;BR /&gt;for doc in res:&lt;BR /&gt;File "/opt/splunk/etc/apps/TA-elasticsearch-data-integrator---modular-input/bin/ta_elasticsearch_data_integrator_modular_input/elasticsearch/helpers/actions.py", line 589, in scan&lt;BR /&gt;body={"scroll_id": scroll_id, "scroll": scroll}, **scroll_kwargs&lt;BR /&gt;File "/opt/splunk/etc/apps/TA-elasticsearch-data-integrator---modular-input/bin/ta_elasticsearch_data_integrator_modular_input/elasticsearch/client/utils.py", line 168, in _wrapped&lt;BR /&gt;return func(*args, params=params, headers=headers, **kwargs)&lt;BR /&gt;File "/opt/splunk/etc/apps/TA-elasticsearch-data-integrator---modular-input/bin/ta_elasticsearch_data_integrator_modular_input/elasticsearch/client/__init__.py", line 1513, in scroll&lt;BR /&gt;"POST", "/_search/scroll", params=params, headers=headers, body=body&lt;BR /&gt;File "/opt/splunk/etc/apps/TA-elasticsearch-data-integrator---modular-input/bin/ta_elasticsearch_data_integrator_modular_input/elasticsearch/transport.py", line 415, in perform_request&lt;BR /&gt;raise e&lt;BR /&gt;File "/opt/splunk/etc/apps/TA-elasticsearch-data-integrator---modular-input/bin/ta_elasticsearch_data_integrator_modular_input/elasticsearch/transport.py", line 388, in perform_request&lt;BR /&gt;timeout=timeout,&lt;BR /&gt;File "/opt/splunk/etc/apps/TA-elasticsearch-data-integrator---modular-input/bin/ta_elasticsearch_data_integrator_modular_input/elasticsearch/connection/http_urllib3.py", line 275, in perform_request&lt;BR /&gt;self._raise_error(response.status, raw_data)&lt;BR /&gt;File "/opt/splunk/etc/apps/TA-elasticsearch-data-integrator---modular-input/bin/ta_elasticsearch_data_integrator_modular_input/elasticsearch/connection/base.py", line 331, in _raise_error&lt;BR /&gt;status_code, error_message, additional_info&lt;BR /&gt;elasticsearch.exceptions.NotFoundError: NotFoundError(404, 'search_phase_execution_exception', 'No search context found for id [9884105]')&lt;/PRE&gt;
&lt;P&gt;Any help would be great, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 16:09:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-get-data-in-whit-elasticsearch-data-integrator-app/m-p/577476#M75680</guid>
      <dc:creator>Expl</dc:creator>
      <dc:date>2023-08-09T16:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Getting data in whit elasticsearch-data-integrator app</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-get-data-in-whit-elasticsearch-data-integrator-app/m-p/653684#M79571</link>
      <description>&lt;P&gt;Hi, we facing the same problem.&lt;/P&gt;&lt;P&gt;Did you get any help ?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 07:03:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-get-data-in-whit-elasticsearch-data-integrator-app/m-p/653684#M79571</guid>
      <dc:creator>Brenny</dc:creator>
      <dc:date>2023-08-09T07:03:36Z</dc:date>
    </item>
  </channel>
</rss>

