<?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: inputs.conf segment setting in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-segment-setting/m-p/346031#M63585</link>
    <description>&lt;P&gt;@plumainwfs can you come back to this answer and let us know if it solves your problem by accepting an answer or adding more details?&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2019 12:21:54 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2019-07-18T12:21:54Z</dc:date>
    <item>
      <title>inputs.conf segment setting</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-segment-setting/m-p/346029#M63583</link>
      <description>&lt;P&gt;Not sure why the hostname for the monitor stanza below is not being parsed out... &lt;/P&gt;

&lt;P&gt;directory is as follows:&lt;BR /&gt;
/mnt/log/files/2017/month/day/&lt;STRONG&gt;HOSTNAME&lt;/STRONG&gt;/auth.logs&lt;/P&gt;

&lt;P&gt;i would have thought by adding a stanza segment=7 will pull the following hostnames: servera, serverb, serverc... and so forth. &lt;/P&gt;

&lt;P&gt;[monitor:///mnt/log/files/2017/03/&lt;EM&gt;(05|06|07|08|09)&lt;/EM&gt;/.../auth.log.gz]&lt;BR /&gt;
whitelist=servera|serverb|serverc|serverd|servere|serverf&lt;BR /&gt;
segment=7&lt;BR /&gt;
index=temp&lt;BR /&gt;
sourcetype=nix:auth&lt;/P&gt;

&lt;P&gt;Not sure what do I have to change here to get this to have the hostname, instead it is pulling the hostname for the local logserver. &lt;/P&gt;</description>
      <pubDate>Sun, 12 Mar 2017 16:53:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-segment-setting/m-p/346029#M63583</guid>
      <dc:creator>plumainwfs</dc:creator>
      <dc:date>2017-03-12T16:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: inputs.conf segment setting</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-segment-setting/m-p/346030#M63584</link>
      <description>&lt;P&gt;Its called &lt;STRONG&gt;&lt;EM&gt;host_segment&lt;/EM&gt;&lt;/STRONG&gt; not segment... &lt;/P&gt;

&lt;P&gt;from inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host_segment = &amp;lt;integer&amp;gt;
* If set to N, the Nth "/"-separated segment of the path is set as host. If
  host_segment=3, for example, the third segment is used.
* If the value is not an integer or is less than 1, the default "host ="
  setting is used.
* Defaults to unset.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 12 Mar 2017 17:24:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-segment-setting/m-p/346030#M63584</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-03-12T17:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: inputs.conf segment setting</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-segment-setting/m-p/346031#M63585</link>
      <description>&lt;P&gt;@plumainwfs can you come back to this answer and let us know if it solves your problem by accepting an answer or adding more details?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 12:21:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-segment-setting/m-p/346031#M63585</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2019-07-18T12:21:54Z</dc:date>
    </item>
  </channel>
</rss>

