<?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 Re: Failed to replicate Streaming bucket in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-replicate-Streaming-bucket/m-p/536860#M89991</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225278"&gt;@justynap_ldz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I remember correctly,&amp;nbsp; I've added the below ansible task to register the replication address. This way indexers can trust each other replication requests.&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;---
- include_tasks: ../../../roles/splunk_common/tasks/wait_for_splunk_instance.yml
  vars:
    splunk_instance_address: "{{ cluster_master_host }}"

- name: Set current node as indexer cluster peer
  command: "{{ splunk.exec }} edit cluster-config -register_replication_address $HOSTNAME.splunk.svc.cluster.local -mode slave -master_uri '{{ cert_prefix }}://{{ cluster_master_host }}:{{ splunk.svc_port }}' -replication_port {{ splunk.idxc.replication_port }} -secret '{{ splunk.idxc.secret }}' -auth '{{ splunk.admin_user }}:{{ splunk.password }}'"
  become: yes
  become_user: "{{ splunk.user }}"
  register: task_result
  changed_when: task_result.rc == 0
  until: task_result.rc == 0
  retries: "{{ retry_num }}"
  delay: 3
  ignore_errors: yes
  notify:
    - Restart the splunkd service
  no_log: "{{ hide_password }}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;As per the Splunk documentation:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;register_replication_address = &amp;lt;IP address or fully qualified machine/domain name&amp;gt;
* Only valid for 'mode=peer'.
* This is the address on which a peer is available for accepting
  replication data. This is useful in the cases where a peer host machine
  has multiple interfaces and only one of them can be reached by another
  splunkd instance&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;If you are not using splunk-ansible, you could set this value directly in the server.conf.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.1/Admin/Serverconf" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.1/Admin/Serverconf&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jan 2021 16:54:01 GMT</pubDate>
    <dc:creator>sankareds</dc:creator>
    <dc:date>2021-01-22T16:54:01Z</dc:date>
    <item>
      <title>Failed to replicate Streaming bucket</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-replicate-Streaming-bucket/m-p/460205#M79459</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm getting the below error and the hot buckets are not replicated across the indexers in a cluster. &lt;/P&gt;

&lt;P&gt;08-23-2019 04:20:05.197 +0000 WARN  BucketReplicator - Failed to replicate Streaming bucket bid=main~337~BB922979-04B2-49E0-AE94-B75588520776 to guid=EFEA22B6-1EAC-4505-8B01-DD2A57666CD7 host=splunk-indexer-b.xxx.svc.cluster.local s2sport=9887. Connection failed&lt;/P&gt;

&lt;P&gt;When I do the telnet from indexer-a to b, the connection closed immediately, However if do the telnet from the localhost the connection is established&lt;/P&gt;

&lt;P&gt;root@splunk-indexer-a:~# telnet splunk-indexer-b.ns.svc.cluster.local 9887&lt;BR /&gt;
Trying 172.20.208.244...&lt;BR /&gt;
Connected to splunk-indexer-b.ns.svc.cluster.local.&lt;BR /&gt;
Escape character is '^]'.&lt;BR /&gt;
Connection closed by foreign host.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 05:10:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Failed-to-replicate-Streaming-bucket/m-p/460205#M79459</guid>
      <dc:creator>sankareds</dc:creator>
      <dc:date>2019-08-23T05:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to replicate Streaming bucket</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-replicate-Streaming-bucket/m-p/460206#M79460</link>
      <description>&lt;P&gt;You have connectivity problems between your indexers.  Check your firewalls.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 13:09:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Failed-to-replicate-Streaming-bucket/m-p/460206#M79460</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-08-23T13:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to replicate Streaming bucket</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-replicate-Streaming-bucket/m-p/460207#M79461</link>
      <description>&lt;P&gt;Hi Richgalloway,&lt;/P&gt;

&lt;P&gt;yup, I've fixed the connectivity issue, and now I'm having different issue.&lt;/P&gt;

&lt;P&gt;The search factor(2) and the replication factor(2) is not met always, I have 3 indexers in my cluster and all the connections are looks good. One thing that I noticed was, there is always some fixup tasks running on the bucket status ui, and the Fixup reason showing as "streaming failure - src=B621E78A-369C-42CC-B604-000174F54036 tgt=BB922979-04B2-49E0-AE94-B75588520776 failing=src" &lt;/P&gt;

&lt;P&gt;After some time the fixup tasks completed succesfully, but it appears again for new buckets and so on. Because of this behavior I've always see "Data Durability" warning on the master. I've recently activated the smartstore in our cluster and I'm not sure that's causing this issue.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Aug 2019 02:58:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Failed-to-replicate-Streaming-bucket/m-p/460207#M79461</guid>
      <dc:creator>sankareds</dc:creator>
      <dc:date>2019-08-24T02:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to replicate Streaming bucket</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-replicate-Streaming-bucket/m-p/460208#M79462</link>
      <description>&lt;P&gt;Please share your server.conf and inputs.conf.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Aug 2019 12:20:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Failed-to-replicate-Streaming-bucket/m-p/460208#M79462</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2019-08-24T12:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to replicate Streaming bucket</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-replicate-Streaming-bucket/m-p/460209#M79463</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Please find the required config files. Also i don't have any customized inputs.conf and using the defaults only.&lt;/P&gt;

&lt;P&gt;Adding few more points, I have 3 indexers cluster, and today I reduced rep/search factor to 2 and its keeping the data durability green longer time than before(3sf/3rf). One of the peer is always lags behind other two in order to catch up with hot buckets. &lt;/P&gt;

&lt;P&gt;Is there a way that we can set wider time window to sync the hot buckets?&lt;/P&gt;

&lt;H2&gt;cluster master [server.conf]&lt;/H2&gt;

&lt;P&gt;[clustering]&lt;BR /&gt;
cluster_label = idxc_label&lt;BR /&gt;
mode = master&lt;BR /&gt;
pass4SymmKey = &lt;BR /&gt;
search_factor = 3&lt;BR /&gt;
replication_factor = 3&lt;BR /&gt;
rebalance_threshold = 0.9&lt;BR /&gt;
percent_peers_to_restart = 100&lt;/P&gt;

&lt;H2&gt;indexers [server.conf]&lt;/H2&gt;

&lt;P&gt;[clustering]&lt;BR /&gt;
master_uri = &lt;A href="https://splunk-master.splunk.svc.cluster.local:8089" target="_blank"&gt;https://splunk-master.splunk.svc.cluster.local:8089&lt;/A&gt;&lt;BR /&gt;
mode = slave&lt;BR /&gt;
pass4SymmKey = &lt;BR /&gt;
register_replication_address = splunk-indexer-1.splunk.svc.cluster.local&lt;BR /&gt;
max_replication_errors = 50 &lt;/P&gt;

&lt;H2&gt;indexers [indexes.conf]&lt;/H2&gt;

&lt;P&gt;maxGlobalDataSizeMB = 50000&lt;/P&gt;

&lt;P&gt;[default]&lt;BR /&gt;
remotePath = volume:remote_store/$_index_name&lt;BR /&gt;
repFactor = 0 &lt;/P&gt;

&lt;H1&gt;only replicating main index&lt;/H1&gt;

&lt;P&gt;[main]&lt;BR /&gt;
repFactor = auto&lt;/P&gt;

&lt;P&gt;[_introspection]&lt;BR /&gt;
repFactor = 0&lt;/P&gt;

&lt;P&gt;[_audit]&lt;BR /&gt;
repFactor = 0 &lt;/P&gt;

&lt;P&gt;[_internal]&lt;BR /&gt;
repFactor = 0 &lt;/P&gt;

&lt;P&gt;[_telemetry]&lt;BR /&gt;
repFactor = 0&lt;/P&gt;

&lt;P&gt;[volume:remote_store]&lt;BR /&gt;
storageType = remote&lt;BR /&gt;
path = s3://splunk-smart-store-bucket&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:53:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Failed-to-replicate-Streaming-bucket/m-p/460209#M79463</guid>
      <dc:creator>sankareds</dc:creator>
      <dc:date>2020-09-30T01:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to replicate Streaming bucket</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-replicate-Streaming-bucket/m-p/536830#M89984</link>
      <description>&lt;P&gt;Could you please share some details on how exactly you fixed network connectivity issues to solve&amp;nbsp;&lt;EM&gt;WARN BucketReplicator - Failed to replicate Streaming bucket&lt;/EM&gt;?&lt;BR /&gt;We have exactly the same issue.&lt;/P&gt;&lt;P&gt;Your help will be much appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 13:06:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Failed-to-replicate-Streaming-bucket/m-p/536830#M89984</guid>
      <dc:creator>justynap_ldz</dc:creator>
      <dc:date>2021-01-22T13:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to replicate Streaming bucket</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-replicate-Streaming-bucket/m-p/536838#M89986</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/200016"&gt;@sankareds&lt;/a&gt;&amp;nbsp;Could you please share some details on how exactly you fixed network connectivity issues to solve&amp;nbsp;&lt;EM&gt;WARN BucketReplicator - Failed to replicate Streaming bucket&lt;/EM&gt;?&lt;BR /&gt;We have exactly the same issue.&lt;/P&gt;&lt;P&gt;Your help will be much appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 14:34:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Failed-to-replicate-Streaming-bucket/m-p/536838#M89986</guid>
      <dc:creator>justynap_ldz</dc:creator>
      <dc:date>2021-01-22T14:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to replicate Streaming bucket</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-replicate-Streaming-bucket/m-p/536860#M89991</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225278"&gt;@justynap_ldz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I remember correctly,&amp;nbsp; I've added the below ansible task to register the replication address. This way indexers can trust each other replication requests.&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;---
- include_tasks: ../../../roles/splunk_common/tasks/wait_for_splunk_instance.yml
  vars:
    splunk_instance_address: "{{ cluster_master_host }}"

- name: Set current node as indexer cluster peer
  command: "{{ splunk.exec }} edit cluster-config -register_replication_address $HOSTNAME.splunk.svc.cluster.local -mode slave -master_uri '{{ cert_prefix }}://{{ cluster_master_host }}:{{ splunk.svc_port }}' -replication_port {{ splunk.idxc.replication_port }} -secret '{{ splunk.idxc.secret }}' -auth '{{ splunk.admin_user }}:{{ splunk.password }}'"
  become: yes
  become_user: "{{ splunk.user }}"
  register: task_result
  changed_when: task_result.rc == 0
  until: task_result.rc == 0
  retries: "{{ retry_num }}"
  delay: 3
  ignore_errors: yes
  notify:
    - Restart the splunkd service
  no_log: "{{ hide_password }}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;As per the Splunk documentation:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;register_replication_address = &amp;lt;IP address or fully qualified machine/domain name&amp;gt;
* Only valid for 'mode=peer'.
* This is the address on which a peer is available for accepting
  replication data. This is useful in the cases where a peer host machine
  has multiple interfaces and only one of them can be reached by another
  splunkd instance&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;If you are not using splunk-ansible, you could set this value directly in the server.conf.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.1/Admin/Serverconf" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.1/Admin/Serverconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 16:54:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Failed-to-replicate-Streaming-bucket/m-p/536860#M89991</guid>
      <dc:creator>sankareds</dc:creator>
      <dc:date>2021-01-22T16:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to replicate Streaming bucket</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-replicate-Streaming-bucket/m-p/580317#M102388</link>
      <description>&lt;P&gt;hi, I had same problem . I changed two things of server.conf file of all indexers :&lt;/P&gt;&lt;P&gt;&amp;nbsp;from,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;master_uri =&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://splunk-master.splunk.svc.cluster.local:8089/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://splunk-master.splunk.svc.cluster.local:8089&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;mode = slave&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;to,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;manager_uri =&amp;nbsp;&lt;A href="https://splunk-master.splunk.svc.cluster.local:8089/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://splunk-master.splunk.svc.cluster.local:8089&lt;/A&gt;&lt;BR /&gt;mode = peer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and restart the splunk. these changes worked for me.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 22:45:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Failed-to-replicate-Streaming-bucket/m-p/580317#M102388</guid>
      <dc:creator>MaroofaTanweer</dc:creator>
      <dc:date>2022-01-07T22:45:37Z</dc:date>
    </item>
  </channel>
</rss>

