<?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: Using custom indices to retrieve docker container logs in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Using-custom-indices-to-retrieve-docker-container-logs/m-p/324126#M92991</link>
    <description>&lt;P&gt;Have you tried to search this: &lt;CODE&gt;index=abc earliest=0&lt;/CODE&gt; ?&lt;/P&gt;</description>
    <pubDate>Tue, 11 Apr 2017 11:05:15 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2017-04-11T11:05:15Z</dc:date>
    <item>
      <title>Using custom indices to retrieve docker container logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-custom-indices-to-retrieve-docker-container-logs/m-p/324125#M92990</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I want to retrieve the event logs of a docker container with a custom index that I created using the Splunk web interface.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Details about the custom index&lt;/STRONG&gt;&lt;BR /&gt;
Name: &lt;STRONG&gt;abc&lt;/STRONG&gt;&lt;BR /&gt;
App: &lt;STRONG&gt;app-docker&lt;/STRONG&gt;&lt;BR /&gt;
Home Path: &lt;STRONG&gt;$SPLUNK_DB/abc/db&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;When I use this index to get container logs, I cannot find the container running in &lt;STRONG&gt;Docker Overview&lt;/STRONG&gt; dashboard (Logs by Container - Splunk Logging Driver, &lt;A href="https://docs.docker.com/engine/admin/logging/splunk/"&gt;https://docs.docker.com/engine/admin/logging/splunk/&lt;/A&gt;). I can only find containers which uses &lt;STRONG&gt;main&lt;/STRONG&gt; index. &lt;/P&gt;

&lt;P&gt;How can I retrieve container logs that use tokens referencing to this custom index?&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 11:00:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-custom-indices-to-retrieve-docker-container-logs/m-p/324125#M92990</guid>
      <dc:creator>nanduni</dc:creator>
      <dc:date>2017-04-11T11:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using custom indices to retrieve docker container logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-custom-indices-to-retrieve-docker-container-logs/m-p/324126#M92991</link>
      <description>&lt;P&gt;Have you tried to search this: &lt;CODE&gt;index=abc earliest=0&lt;/CODE&gt; ?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 11:05:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-custom-indices-to-retrieve-docker-container-logs/m-p/324126#M92991</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2017-04-11T11:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using custom indices to retrieve docker container logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-custom-indices-to-retrieve-docker-container-logs/m-p/324127#M92992</link>
      <description>&lt;P&gt;Thank you very much.&lt;/P&gt;

&lt;P&gt;You are right, I am getting the event outputs for &lt;STRONG&gt;index=abc earliest=0&lt;/STRONG&gt;. So why do you think that container not appears in the Docker Overview dashboard. &lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 11:18:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-custom-indices-to-retrieve-docker-container-logs/m-p/324127#M92992</guid>
      <dc:creator>nanduni</dc:creator>
      <dc:date>2017-04-11T11:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using custom indices to retrieve docker container logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-custom-indices-to-retrieve-docker-container-logs/m-p/324128#M92993</link>
      <description>&lt;P&gt;change the indexes that are searched by default for your role. Most likely the dashboard searches are created without a specific index name. See the docs for more details to change the by default searched indexes &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.3/Security/Aboutusersandroles"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.3/Security/Aboutusersandroles&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;I will convert this to an answer, feel free to accept it&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 11:26:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-custom-indices-to-retrieve-docker-container-logs/m-p/324128#M92993</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2017-04-11T11:26:35Z</dc:date>
    </item>
  </channel>
</rss>

