<?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: Configuring virtual index to reach out to S3 over Direct Connect in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Configuring-virtual-index-to-reach-out-to-S3-over-Direct-Connect/m-p/443679#M54593</link>
    <description>&lt;P&gt;Thanks &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/34088"&gt;@rdagan_splunk&lt;/a&gt;! The setting I think I was looking for was &lt;CODE&gt;vix.fs.s3a.endpoint = &lt;A href="http://127.0.0.1:9000" target="_blank"&gt;http://127.0.0.1:9000&lt;/A&gt;&lt;/CODE&gt;.  It's not something that is listed in the Per Virtual Provider/Index settings of indexes.conf.spec. Doing some research I found it can be set in hdfs-site.xml in your $HADOOP_HOME/etc/hadoop as well.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 00:20:51 GMT</pubDate>
    <dc:creator>mdsnmss</dc:creator>
    <dc:date>2020-09-30T00:20:51Z</dc:date>
    <item>
      <title>Configuring virtual index to reach out to S3 over Direct Connect</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Configuring-virtual-index-to-reach-out-to-S3-over-Direct-Connect/m-p/443677#M54591</link>
      <description>&lt;P&gt;I'm currently working on setting up a virtual index that connects to an Amazon EMR instance and queries data in S3. It is much like this: &lt;A href="https://www.splunk.com/blog/2016/10/30/how-to-splunk-analytics-for-hadoop-on-amazon-web-services-elastic-map-reduce.html"&gt;https://www.splunk.com/blog/2016/10/30/how-to-splunk-analytics-for-hadoop-on-amazon-web-services-elastic-map-reduce.html&lt;/A&gt;. I have the provider up and working and can search HDFS data directly on the EMR node but run into issues when trying to configure a virtual index to connect to S3. For the "Path to data in HDFS" setting when adding a virtual index I have tried setting the prefix with both S3 and s3n with no luck. I do have the awsAccessKeyId and awsSecretAccessKey for the S3 properly set in hdfs-site.xml.&lt;/P&gt;

&lt;P&gt;Looking through search.log when attempting to query the S3 data I can see it attempting to reach out to the S3 path defined in the virtual index but it looks like it fills in data automatically assuming to try reach out to S3 in public AWS. Since we have a Direct Connect (&lt;A href="https://aws.amazon.com/directconnect/"&gt;https://aws.amazon.com/directconnect/&lt;/A&gt;) is there a way to tell Splunk to go there instead of autofinishing the path with the public domain?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 16:32:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Configuring-virtual-index-to-reach-out-to-S3-over-Direct-Connect/m-p/443677#M54591</guid>
      <dc:creator>mdsnmss</dc:creator>
      <dc:date>2019-04-30T16:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring virtual index to reach out to S3 over Direct Connect</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Configuring-virtual-index-to-reach-out-to-S3-over-Direct-Connect/m-p/443678#M54592</link>
      <description>&lt;P&gt;Below is my working environment using Minio (open source S3)&lt;BR /&gt;
In addition, here are 2 links that might be helpful:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Indexer/ArchivingSplunkindexestoS3" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Indexer/ArchivingSplunkindexestoS3&lt;/A&gt; &lt;BR /&gt;
and&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/457052/how-to-configure-650-data-roll-to-search-archived.html" target="_blank"&gt;https://answers.splunk.com/answers/457052/how-to-configure-650-data-roll-to-search-archived.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;[provider:minio_provider]&lt;BR /&gt;
vix.command.arg.3 = $SPLUNK_HOME/bin/jars/SplunkMR-hy2.jar&lt;BR /&gt;
vix.env.HADOOP_HOME = /opt/hadoop-2.9.2&lt;BR /&gt;
vix.env.JAVA_HOME = /usr&lt;BR /&gt;
vix.family = hadoop&lt;BR /&gt;
vix.fs.default.name = hdfs://127.0.0.1:8020&lt;BR /&gt;
vix.mapreduce.framework.name = yarn&lt;BR /&gt;
vix.output.buckets.max.network.bandwidth = 0&lt;BR /&gt;
vix.splunk.home.hdfs = /user/root/splunkmr&lt;BR /&gt;
vix.env.HADOOP_TOOLS = $HADOOP_HOME/share/hadoop/common/lib&lt;BR /&gt;
vix.fs.s3a.access.key = my_access_key&lt;BR /&gt;
vix.fs.s3a.endpoint = &lt;A href="http://127.0.0.1:9000" target="_blank"&gt;http://127.0.0.1:9000&lt;/A&gt;&lt;BR /&gt;
vix.fs.s3a.impl = org.apache.hadoop.fs.s3a.S3AFileSystem&lt;BR /&gt;
vix.fs.s3a.path.style.access = true&lt;BR /&gt;
vix.fs.s3a.secret.key = my_secret_key&lt;BR /&gt;
vix.mode = stream&lt;BR /&gt;
vix.splunk.jars = $HADOOP_TOOLS/hadoop-aws-2.9.2.jar,$HADOOP_TOOLS/aws-java-sdk-1.11.234.jar&lt;BR /&gt;
vix.env.HADOOP_HEAPSIZE = 1024&lt;/P&gt;

&lt;P&gt;[minio_test]&lt;BR /&gt;
vix.input.1.accept = .gz$&lt;BR /&gt;
vix.input.1.path = s3a://splunkarchive/...&lt;BR /&gt;
vix.provider = minio_provider&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:25:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Configuring-virtual-index-to-reach-out-to-S3-over-Direct-Connect/m-p/443678#M54592</guid>
      <dc:creator>rdagan_splunk</dc:creator>
      <dc:date>2020-09-30T00:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring virtual index to reach out to S3 over Direct Connect</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Configuring-virtual-index-to-reach-out-to-S3-over-Direct-Connect/m-p/443679#M54593</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/34088"&gt;@rdagan_splunk&lt;/a&gt;! The setting I think I was looking for was &lt;CODE&gt;vix.fs.s3a.endpoint = &lt;A href="http://127.0.0.1:9000" target="_blank"&gt;http://127.0.0.1:9000&lt;/A&gt;&lt;/CODE&gt;.  It's not something that is listed in the Per Virtual Provider/Index settings of indexes.conf.spec. Doing some research I found it can be set in hdfs-site.xml in your $HADOOP_HOME/etc/hadoop as well.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:20:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Configuring-virtual-index-to-reach-out-to-S3-over-Direct-Connect/m-p/443679#M54593</guid>
      <dc:creator>mdsnmss</dc:creator>
      <dc:date>2020-09-30T00:20:51Z</dc:date>
    </item>
  </channel>
</rss>

