<?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: [SmartStore] How to verify splunk indexer connectivty to remote storage? in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/SmartStore-How-to-verify-splunk-indexer-connectivty-to-remote/m-p/542919#M4943</link>
    <description>&lt;P&gt;Just a short comment on the syntax checking in &lt;FONT face="courier new,courier"&gt;indexes.conf:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Beware of typos in &lt;FONT face="courier new,courier"&gt;remote.s3.xyz&lt;/FONT&gt;!&amp;nbsp;&lt;/P&gt;&lt;P&gt;A capitel "S" like "&lt;FONT face="courier new,courier"&gt;remote.&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;S&lt;/FONT&gt;&lt;/STRONG&gt;3.access_key&lt;/FONT&gt;" will be silently ignored and does not create an error message on startup like "storage&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;t&lt;/FONT&gt;&lt;/STRONG&gt;ype" in the same file would!&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above examples are correct, just as a heads up.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Mar 2021 23:17:00 GMT</pubDate>
    <dc:creator>hsesterhenn_spl</dc:creator>
    <dc:date>2021-03-08T23:17:00Z</dc:date>
    <item>
      <title>[SmartStore] How to verify splunk indexer connectivty to remote storage?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/SmartStore-How-to-verify-splunk-indexer-connectivty-to-remote/m-p/399606#M3435</link>
      <description>&lt;P&gt;I have configured Splunk Remote storage on indexer. How can I verify connectivity ?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 07:15:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/SmartStore-How-to-verify-splunk-indexer-connectivty-to-remote/m-p/399606#M3435</guid>
      <dc:creator>rbal_splunk</dc:creator>
      <dc:date>2018-11-21T07:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: [SmartStore] How to verify splunk indexer connectivty to remote storage?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/SmartStore-How-to-verify-splunk-indexer-connectivty-to-remote/m-p/399607#M3436</link>
      <description>&lt;P&gt;Assuming the configuration for remote store is done as per splunk documentation, splunk provide cli command to verify connectivity.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;1) Verify the remote store configuration for indexex.conf using splunk btool command:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;$SPLUNK_HOME/bin/splunk cmd btool indexes list | grep -iE '[|homePath|remotePath'&lt;BR /&gt;
sample output&lt;/P&gt;

&lt;P&gt;[main]&lt;BR /&gt;
 homePath = $SPLUNK_DB/defaultdb/db&lt;BR /&gt;
 homePath.maxDataSizeMB = 0&lt;BR /&gt;
 remotePath = volume:my_s3_vol/$_index_name&lt;/P&gt;

&lt;P&gt;Note : Verify that remotePath is configured.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;2)To check connectivity of indexer to remote storage:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;./splunk cmd splunkd rfs -- ls --starts-with volume:remote_store&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;below is sample output listing all buckets in remote store &lt;/P&gt;

&lt;P&gt;7,_audit/db/05/77/5~EACDAA22-751B-4DE2-A6A9-73B1AADD4AB7/guidSplunk-C3912E39-C49C-4A24-B119-AA4B13C0F3F1/.rawSize&lt;BR /&gt;
 6,_audit/db/05/77/5~EACDAA22-751B-4DE2-A6A9-73B1AADD4AB7/guidSplunk-C3912E39-C49C-4A24-B119-AA4B13C0F3F1/.sizeManifest4.1&lt;BR /&gt;
  306552,_audit/db/05/77/5~EACDAA22-751B-4DE2-A6A9-73B1AADD4AB7/guidSplunk-C3912E39-C49C-4A24-B119-AA4B13C0F3F1/1540453352-1540453334-13833779688671193752.tsidx&lt;BR /&gt;
  126,_audit/db/05/77/5~EACDAA22-751B-4DE2-A6A9-73B1AADD4AB7/guidSplunk-C3912E39-C49C-4A24-B119-AA4B13C0F3F1/Hosts.data&lt;/P&gt;

&lt;P&gt;3)If you wanted to determine a bucket's location on remote S3 storage, then you will have to SSH to once of the indexers which are hosting this bucket and run the following:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;./splunk cmd splunkd rfs -- ls --starts-with bucket:_audit~41~EACDAA22-751B-4DE2-A6A9-73B1AADD4AB7&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#for full paths run: splunkd rfs -- ls --starts-with volume:my_s3_vol/_audit/db/0c/52/41~EACDAA22-751B-4DE2-A6A9-73B1AADD4AB7/
size,name
7,_audit/db/0c/52/41~EACDAA22-751B-4DE2-A6A9-73B1AADD4AB7/guidSplunk-C3912E39-C49C-4A24-B119-AA4B13C0F3F1/.rawSize
33139,_audit/db/0c/52/41~EACDAA22-751B-4DE2-A6A9-73B1AADD4AB7/guidSplunk-C3912E39-C49C-4A24-B119-AA4B13C0F3F1/1540458192-1540458190-16133619378677487188.tsidx
118851,_audit/db/0c/52/41~EACDAA22-751B-4DE2-A6A9-73B1AADD4AB7/guidSplunk-C3912E39-C49C-4A24-B119-AA4B13C0F3F1/1540458200-1540458192-16133671734328829674.tsidx
120,_audit/db/0c/52/41~EACDAA22-751B-4DE2-A6A9-73B1AADD4AB7/guidSplunk-C3912E39-C49C-4A24-B119-AA4B13C0F3F1/Hosts.data
105,_audit/db/0c/52/41~EACDAA22-751B-4DE2-A6A9-73B1AADD4AB7/guidSplunk-C3912E39-C49C-4A24-B119-AA4B13C0F3F1/SourceTypes.data
101,_audit/db/0c/52/41~EACDAA22-751B-4DE2-A6A9-73B1AADD4AB7/guidSplunk-C3912E39-C49C-4A24-B119-AA4B13C0F3F1/Sources.data
253,_audit/db/0c/52/41~EACDAA22-751B-4DE2-A6A9-73B1AADD4AB7/guidSplunk-C3912E39-C49C-4A24-B119-AA4B13C0F3F1/Strings.data
13523,_audit/db/0c/52/41~EACDAA22-751B-4DE2-A6A9-73B1AADD4AB7/guidSplunk-C3912E39-C49C-4A24-B119-AA4B13C0F3F1/rawdata/journal.gz
14,_audit/db/0c/52/41~EACDAA22-751B-4DE2-A6A9-73B1AADD4AB7/guidSplunk-C3912E39-C49C-4A24-B119-AA4B13C0F3F1/rawdata/slicemin.dat
53,_audit/db/0c/52/41~EACDAA22-751B-4DE2-A6A9-73B1AADD4AB7/guidSplunk-C3912E39-C49C-4A24-B119-AA4B13C0F3F1/rawdata/slicesv2.dat
89,_audit/db/0c/52/41~EACDAA22-751B-4DE2-A6A9-73B1AADD4AB7/guidSplunk-C3912E39-C49C-4A24-B119-AA4B13C0F3F1/splunk-autogen-params.dat
1585,_audit/db/0c/52/41~EACDAA22-751B-4DE2-A6A9-73B1AADD4AB7/receipt.json
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;4)You can also attempt to retrieve buckets date from S3:&lt;/P&gt;

&lt;P&gt;./splunk cmd splunkd rfs -- getF volume:splunkcloud_vol/infra_lb/db/4c/29/178~3A0745AC-F5A5-4FF6-B8EB-70BBBD2F7C87/receipt.json /tmp/&lt;/P&gt;

&lt;P&gt;5)If you wanted to determine a bucket's location on remote S3 storage, then you will have to SSH to once of the indexers which are hosting this bucket and run the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk cmd splunkd rfs -- ls bucket:&amp;lt;bid&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;splunk cmd splunkd rfs -- ls bucket:infra_lb~178~3A0745AC-F5A5-4FF6-B8EB-70BBBD2F7C87&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ splunk cmd splunkd rfs -- ls bucket:infra_lb~178~3A0745AC-F5A5-4FF6-B8EB-70BBBD2F7C87
#for full paths run: splunkd rfs -- ls --starts-with volume:splunkcloud_vol/infra_lb/db/4c/29/178~3A0745AC-F5A5-4FF6-B8EB-70BBBD2F7C87/
size,name
8,/guidSplunk-1476A72F-9813-4532-84E1-CF715E256C74/.rawSize
6,/guidSplunk-1476A72F-9813-4532-84E1-CF715E256C74/.sizeManifest4.1
325625,/guidSplunk-1476A72F-9813-4532-84E1-CF715E256C74/1539224543-1539224257-12616059197701474167.tsidx
550,/guidSplunk-1476A72F-9813-4532-84E1-CF715E256C74/Hosts.data
192,/guidSplunk-1476A72F-9813-4532-84E1-CF715E256C74/SourceTypes.data
772,/guidSplunk-1476A72F-9813-4532-84E1-CF715E256C74/Sources.data
306,/guidSplunk-1476A72F-9813-4532-84E1-CF715E256C74/Strings.data
.............
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;6)To get help:&lt;/P&gt;

&lt;P&gt;$splunk cmd splunkd rfs help&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:05:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/SmartStore-How-to-verify-splunk-indexer-connectivty-to-remote/m-p/399607#M3436</guid>
      <dc:creator>rbal_splunk</dc:creator>
      <dc:date>2020-09-29T22:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: [SmartStore] How to verify splunk indexer connectivty to remote storage?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/SmartStore-How-to-verify-splunk-indexer-connectivty-to-remote/m-p/399608#M3437</link>
      <description>&lt;P&gt;Documentation to learn about Splunk SmartStore ...&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.2.1/Indexer/AboutSmartStore"&gt;http://docs.splunk.com/Documentation/Splunk/7.2.1/Indexer/AboutSmartStore&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Very Good information here at...&lt;BR /&gt;
&lt;A href="https://www.splunk.com/blog/2018/10/11/splunk-smartstore-cut-the-cord-by-decoupling-compute-and-storage.html"&gt;https://www.splunk.com/blog/2018/10/11/splunk-smartstore-cut-the-cord-by-decoupling-compute-and-storage.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 09:45:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/SmartStore-How-to-verify-splunk-indexer-connectivty-to-remote/m-p/399608#M3437</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2018-11-21T09:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: [SmartStore] How to verify splunk indexer connectivty to remote storage?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/SmartStore-How-to-verify-splunk-indexer-connectivty-to-remote/m-p/399609#M3438</link>
      <description>&lt;P&gt;Thanks for this @rbal_splunk!&lt;/P&gt;

&lt;P&gt;This post helped me with my adventure deploying smartstore on an existing cluster!&lt;/P&gt;

&lt;P&gt;Here are some other useful items I found after this got me on track verifying my smart store config was working on 7.2.0:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=_internal source=*splunkd.log component=S3Client ERROR OR WARN&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;11-23-2018 01:45:21.790 +0000 WARN  S3Client - command=list transactionId=0x7f7d59d7b200 rTxnId=0x7f7d3f7f9350 status=completed success=N uri=https://s3.ca-central-1.amazonaws.com/mattymo/thisShouldntBeInTheURI statusCode=502 statusDescription="Error resolving: Name or service not known"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The above search helped find an incorrect path in the &lt;CODE&gt;remote.s3.endpoint&lt;/CODE&gt; URI...among other config butchering. &lt;/P&gt;

&lt;P&gt;Here are my indexers screaming at me for an hour as i bumblefutzed my way through config on my Splunk cluster deployed on Kubernetes:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://i.imgur.com/1ngNmFW.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*splunkd.log component=S3client statusCode=*
| timechart span=1m count by statusCode
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;IMG src="https://i.imgur.com/w64DNK6.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   index=_internal source=*splunkd.log component=CacheManager status=*
    | timechart span=5m count by status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;IMG src="https://i.imgur.com/DxmuZQa.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Once I got the URI right ( around 01:30 GMT), the cluster settled down, all the fix-ups were good to go. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Indexer/TroubleshootSmartStore"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Indexer/TroubleshootSmartStore&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Other interesting components in splunkd.log, see docs link above for more:&lt;/P&gt;

&lt;P&gt;S3Client - Communication with S3.&lt;BR /&gt;
StorageInterface -  External storage activity (at a higher level than S3Client).&lt;BR /&gt;
CacheManager -  Activity of the cache manger component.&lt;BR /&gt;
CacheManagerHandler - Cache manager REST endpoint activity (both server and client side).&lt;/P&gt;

&lt;P&gt;Side Note: I threw in some feedback for docs, as the smart store example has the user putting &lt;CODE&gt;repFactor = auto&lt;/CODE&gt; in the default &lt;CODE&gt;indexes.conf&lt;/CODE&gt; stanza which triggers the bundle validation errors due to replication of &lt;CODE&gt;_introspection&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;config I ended up with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
# Configure all indexes to use the SmartStore remote volume called
# "smartstore".
# Note: If you want only some of your indexes to use SmartStore,
# place this setting under the individual stanzas for each of the
# SmartStore indexes, rather than here.

remotePath = volume:smartstore/$_index_name
repFactor = auto


# Configure the remote volume
[volume:smartstore]
storageType = remote

# On the next line, the path attribute points to the remote storage location
# where indexes reside. Each SmartStore index resides directly below the location
# specified by the path attribute. The &amp;lt;scheme&amp;gt; identifies a supported remote
# storage system type, such as S3. The &amp;lt;remote-location-specifier&amp;gt; is a
# string specific to the remote storage system that specifies the location
# of the indexes inside the remote system.
# This is an S3 example: "path = s3://mybucket/some/path".

path = s3://somebucket/

# The following S3 settings are required only if you're using the access and secret
# keys. They are not needed if you are using AWS IAM roles.

remote.s3.access_key = someAccessKey
remote.s3.secret_key = someSecretKey
remote.s3.endpoint = &lt;A href="https://s3.ca-central-1.amazonaws.com/" target="test_blank"&gt;https://s3.ca-central-1.amazonaws.com/&lt;/A&gt;

[_introspection]
repFactor = 0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Nov 2018 02:44:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/SmartStore-How-to-verify-splunk-indexer-connectivty-to-remote/m-p/399609#M3438</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2018-11-23T02:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: [SmartStore] How to verify splunk indexer connectivty to remote storage?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/SmartStore-How-to-verify-splunk-indexer-connectivty-to-remote/m-p/542919#M4943</link>
      <description>&lt;P&gt;Just a short comment on the syntax checking in &lt;FONT face="courier new,courier"&gt;indexes.conf:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Beware of typos in &lt;FONT face="courier new,courier"&gt;remote.s3.xyz&lt;/FONT&gt;!&amp;nbsp;&lt;/P&gt;&lt;P&gt;A capitel "S" like "&lt;FONT face="courier new,courier"&gt;remote.&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;S&lt;/FONT&gt;&lt;/STRONG&gt;3.access_key&lt;/FONT&gt;" will be silently ignored and does not create an error message on startup like "storage&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;t&lt;/FONT&gt;&lt;/STRONG&gt;ype" in the same file would!&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above examples are correct, just as a heads up.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 23:17:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/SmartStore-How-to-verify-splunk-indexer-connectivty-to-remote/m-p/542919#M4943</guid>
      <dc:creator>hsesterhenn_spl</dc:creator>
      <dc:date>2021-03-08T23:17:00Z</dc:date>
    </item>
  </channel>
</rss>

