<?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: Splunk DB connect Host Field Value from DB in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-DB-connect-Host-Field-Value-from-DB/m-p/52700#M22278</link>
    <description>&lt;P&gt;Look at &lt;BR /&gt;
Dynamically set the default host value&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.1/Data/setadefaulthostforaninput"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.1/Data/setadefaulthostforaninput&lt;/A&gt;&lt;BR /&gt;
If you export your hostname as another name and use this method, you should be able to set the host based on a field returned.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Feb 2014 17:34:21 GMT</pubDate>
    <dc:creator>aelliott</dc:creator>
    <dc:date>2014-02-14T17:34:21Z</dc:date>
    <item>
      <title>Splunk DB connect Host Field Value from DB</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-DB-connect-Host-Field-Value-from-DB/m-p/52693#M22271</link>
      <description>&lt;P&gt;hi&lt;/P&gt;

&lt;P&gt;I lately started to use Splunk db connect, and need to create an input that contains entries from different hosts.&lt;BR /&gt;
is there any way that the host field value will be a column in the result of the SQL query, and not a constant value?&lt;/P&gt;

&lt;P&gt;I tried to just name one of the columns 'host', but it didn't work.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Sep 2013 14:55:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-DB-connect-Host-Field-Value-from-DB/m-p/52693#M22271</guid>
      <dc:creator>pembleton</dc:creator>
      <dc:date>2013-09-01T14:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB connect Host Field Value from DB</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-DB-connect-Host-Field-Value-from-DB/m-p/52694#M22272</link>
      <description>&lt;P&gt;Specific information a little more is required for me to answer.&lt;/P&gt;

&lt;P&gt;↓Is not it's not the kind of thing?&lt;BR /&gt;
SELECT *,"HOSTNAME_XXX" as host FROM TableName&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2013 01:10:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-DB-connect-Host-Field-Value-from-DB/m-p/52694#M22272</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2013-09-02T01:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB connect Host Field Value from DB</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-DB-connect-Host-Field-Value-from-DB/m-p/52695#M22273</link>
      <description>&lt;P&gt;A host by any other name is still a host.&lt;BR /&gt;&lt;BR /&gt;
Why not name the field/column dbhost?&lt;BR /&gt;
That way you will know which 'host' it came from, and also be able to identify the 'host' from within the source.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2013 01:14:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-DB-connect-Host-Field-Value-from-DB/m-p/52695#M22273</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-09-02T01:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB connect Host Field Value from DB</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-DB-connect-Host-Field-Value-from-DB/m-p/52696#M22274</link>
      <description>&lt;P&gt;Please forgive me because it is not good at English I.&lt;BR /&gt;
Or that we also wish to retrieve the host name of the target DB on the results of SQL?&lt;/P&gt;

&lt;P&gt;(For example, if MySQL)&lt;BR /&gt;
select A,B,C, substring(CURRENT_USER(),locate("@",CURRENT_USER())+1) as  host from TableName&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:41:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-DB-connect-Host-Field-Value-from-DB/m-p/52696#M22274</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2020-09-28T14:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB connect Host Field Value from DB</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-DB-connect-Host-Field-Value-from-DB/m-p/52697#M22275</link>
      <description>&lt;P&gt;as i said above, naming one of the columns 'host' doesn't work...&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2013 07:41:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-DB-connect-Host-Field-Value-from-DB/m-p/52697#M22275</guid>
      <dc:creator>pembleton</dc:creator>
      <dc:date>2013-09-02T07:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB connect Host Field Value from DB</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-DB-connect-Host-Field-Value-from-DB/m-p/52698#M22276</link>
      <description>&lt;P&gt;no, this doesn't work for me either.  the host field is ignored&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2014 16:58:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-DB-connect-Host-Field-Value-from-DB/m-p/52698#M22276</guid>
      <dc:creator>d1rtym0nk3y</dc:creator>
      <dc:date>2014-02-14T16:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB connect Host Field Value from DB</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-DB-connect-Host-Field-Value-from-DB/m-p/52699#M22277</link>
      <description>&lt;P&gt;You could name it DBHost and use that in searches etc..&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2014 17:23:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-DB-connect-Host-Field-Value-from-DB/m-p/52699#M22277</guid>
      <dc:creator>aelliott</dc:creator>
      <dc:date>2014-02-14T17:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB connect Host Field Value from DB</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-DB-connect-Host-Field-Value-from-DB/m-p/52700#M22278</link>
      <description>&lt;P&gt;Look at &lt;BR /&gt;
Dynamically set the default host value&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.1/Data/setadefaulthostforaninput"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.1/Data/setadefaulthostforaninput&lt;/A&gt;&lt;BR /&gt;
If you export your hostname as another name and use this method, you should be able to set the host based on a field returned.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2014 17:34:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-DB-connect-Host-Field-Value-from-DB/m-p/52700#M22278</guid>
      <dc:creator>aelliott</dc:creator>
      <dc:date>2014-02-14T17:34:21Z</dc:date>
    </item>
  </channel>
</rss>

