<?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 Will increasing Elasticsplunk application timeout resolve this error? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Will-increasing-Elasticsplunk-application-timeout-resolve-this/m-p/633055#M219903</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello&lt;BR /&gt;I am currently managing a hybrid between Splunk and ELK (Elastisearch Logstash Kibana).&lt;/P&gt;
&lt;P&gt;Logs supporting syslog protocol are sent to ELK and logs from other sources directly to windows via agent.&lt;/P&gt;
&lt;P&gt;A plugin called Elasticsplunk has been installed and is stored in the path /splunk/splunk/etc/apps/elasticsplunk/.&lt;/P&gt;
&lt;P&gt;Currently I am getting the following error message and I would like you to please help me if you know in which configuration file I increase the timeout&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;External search command 'ess' returned error code 1. Script output = "error_message=ConnectionTimeout at "/var2/splunk/splunk/etc/apps/elasticsplunk/bin/elasticsearch/connection/http_urllib3.py", line 155 : ConnectionTimeout caused by - ReadTimeoutError(HTTPConnectionPool(host=u'localhost', port=9200): Read timed out. (read timeout=60)) ".”&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Mar 2023 16:37:50 GMT</pubDate>
    <dc:creator>splunkcol</dc:creator>
    <dc:date>2023-03-03T16:37:50Z</dc:date>
    <item>
      <title>Will increasing Elasticsplunk application timeout resolve this error?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Will-increasing-Elasticsplunk-application-timeout-resolve-this/m-p/633055#M219903</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello&lt;BR /&gt;I am currently managing a hybrid between Splunk and ELK (Elastisearch Logstash Kibana).&lt;/P&gt;
&lt;P&gt;Logs supporting syslog protocol are sent to ELK and logs from other sources directly to windows via agent.&lt;/P&gt;
&lt;P&gt;A plugin called Elasticsplunk has been installed and is stored in the path /splunk/splunk/etc/apps/elasticsplunk/.&lt;/P&gt;
&lt;P&gt;Currently I am getting the following error message and I would like you to please help me if you know in which configuration file I increase the timeout&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;External search command 'ess' returned error code 1. Script output = "error_message=ConnectionTimeout at "/var2/splunk/splunk/etc/apps/elasticsplunk/bin/elasticsearch/connection/http_urllib3.py", line 155 : ConnectionTimeout caused by - ReadTimeoutError(HTTPConnectionPool(host=u'localhost', port=9200): Read timed out. (read timeout=60)) ".”&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 16:37:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Will-increasing-Elasticsplunk-application-timeout-resolve-this/m-p/633055#M219903</guid>
      <dc:creator>splunkcol</dc:creator>
      <dc:date>2023-03-03T16:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Elasticsplunk application increase timeout</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Will-increasing-Elasticsplunk-application-timeout-resolve-this/m-p/633060#M219906</link>
      <description>&lt;P&gt;EDIT: For Elastic Python (v6)&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/brunotm/elasticsplunk" target="_self"&gt;This project&lt;/A&gt; has been archived on GitHub so you are quite unlikely to get support from the creator.&lt;BR /&gt;Looking through the code, there is no timeout argument for the ess command, so not a lot you can do on the Splunk-side.&lt;BR /&gt;&lt;BR /&gt;If you're happy to have a go at editing the code, then the Elasticsearch.search method in the Elastic Python SDK (v6) takes a&amp;nbsp;&lt;SPAN&gt;timeout argument. Have a go at adding it under&amp;nbsp;&lt;A href="https://github.com/brunotm/elasticsplunk/blob/ebc795413ec4fb309c1e5ff2ee4d4cf523e58983/bin/elasticsplunk.py#L266" target="_self"&gt;line 266 in ./elasticsplunk/bin/elasticsplunk.py:&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;            res = esclient.search(index=config[KEY_CONFIG_INDEX],&lt;BR /&gt;                                  size=config[KEY_CONFIG_LIMIT],&lt;BR /&gt;                                  _source_include=config[KEY_CONFIG_FIELDS],&lt;BR /&gt;                                  doc_type=config[KEY_CONFIG_SOURCE_TYPE],&lt;BR /&gt;                                  body=body)&lt;/PRE&gt;&lt;P&gt;Add the timeout argument as follows (don't forget the comma at the end of the body line):&lt;/P&gt;&lt;PRE&gt;            res = esclient.search(index=config[KEY_CONFIG_INDEX],&lt;BR /&gt;                                  size=config[KEY_CONFIG_LIMIT],&lt;BR /&gt;                                  _source_include=config[KEY_CONFIG_FIELDS],&lt;BR /&gt;                                  doc_type=config[KEY_CONFIG_SOURCE_TYPE],&lt;BR /&gt;                                  body=body&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;                                  timeout=600&lt;/STRONG&gt;)&lt;/PRE&gt;&lt;P&gt;FYI, I haven't tested this because I don't have elastic, but looking through the code, I think this will work. There are also some elastic add-ons on Splunkbase that might be worth checking out to see if they're actively supported?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 22:31:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Will-increasing-Elasticsplunk-application-timeout-resolve-this/m-p/633060#M219906</guid>
      <dc:creator>Tom_Lundie</dc:creator>
      <dc:date>2023-03-02T22:31:01Z</dc:date>
    </item>
  </channel>
</rss>

