<?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: host name extraction for multiple types of logs in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/host-name-extraction-for-multiple-types-of-logs/m-p/74739#M15258</link>
    <description>&lt;P&gt;on the input stanza, i believe you can set it explicity:&lt;/P&gt;

&lt;P&gt;host=alert&lt;/P&gt;

&lt;P&gt;I am doing that with my firewall logs, so the host is set to be the city location.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Apr 2011 21:38:39 GMT</pubDate>
    <dc:creator>jgauthier</dc:creator>
    <dc:date>2011-04-05T21:38:39Z</dc:date>
    <item>
      <title>host name extraction for multiple types of logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/host-name-extraction-for-multiple-types-of-logs/m-p/74738#M15257</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;I have two different types of logs, performance logs and alert logs.
for performance logs , I have a folder structure as follows,
\Splunk\etc\apps\myApp\logs\log_sample\host1\gn1*.cvs
\Splunk\etc\apps\myApp\logs\log_sample\host2\gn2*.cvs
\Splunk\etc\apps\myApp\logs\log_sample\host3\gn3*.cvs&lt;/P&gt;

&lt;P&gt;here, host1, host2, and host3 are my host names.
I managed to extract above host names using "host_segment" in inputs.conf.&lt;/P&gt;

&lt;P&gt;Now, for alert logs I have a below directory structure.
\Splunk\etc\apps\myApp\logs\AlertLogs*.csv
For all these alert logs I need a static hostname say "alert".&lt;/P&gt;

&lt;P&gt;How can I configure Inputs.conf to handle above situation ? &lt;/P&gt;

&lt;P&gt;Regards,
S.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2011 16:59:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/host-name-extraction-for-multiple-types-of-logs/m-p/74738#M15257</guid>
      <dc:creator>spatil</dc:creator>
      <dc:date>2011-04-05T16:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: host name extraction for multiple types of logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/host-name-extraction-for-multiple-types-of-logs/m-p/74739#M15258</link>
      <description>&lt;P&gt;on the input stanza, i believe you can set it explicity:&lt;/P&gt;

&lt;P&gt;host=alert&lt;/P&gt;

&lt;P&gt;I am doing that with my firewall logs, so the host is set to be the city location.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2011 21:38:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/host-name-extraction-for-multiple-types-of-logs/m-p/74739#M15258</guid>
      <dc:creator>jgauthier</dc:creator>
      <dc:date>2011-04-05T21:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: host name extraction for multiple types of logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/host-name-extraction-for-multiple-types-of-logs/m-p/74740#M15259</link>
      <description>&lt;P&gt;I have already added below lines in inputs.conf, still it is not working         host_segment=7      [source::...AlertLogs...] host=alert&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2011 12:54:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/host-name-extraction-for-multiple-types-of-logs/m-p/74740#M15259</guid>
      <dc:creator>spatil</dc:creator>
      <dc:date>2011-04-06T12:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: host name extraction for multiple types of logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/host-name-extraction-for-multiple-types-of-logs/m-p/74741#M15260</link>
      <description>&lt;P&gt;What is the host showing up as?  You probably want to remove the host_segment here, it's not necessary.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2011 20:27:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/host-name-extraction-for-multiple-types-of-logs/m-p/74741#M15260</guid>
      <dc:creator>jgauthier</dc:creator>
      <dc:date>2011-04-06T20:27:10Z</dc:date>
    </item>
  </channel>
</rss>

