<?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 during data upload in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/host-name-extraction-during-data-upload/m-p/309397#M58194</link>
    <description>&lt;P&gt;YOu'd need to setup props/transforms to override host from raw data. See this for reference.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/409734/unable-to-override-host-value-using-regex.html"&gt;https://answers.splunk.com/answers/409734/unable-to-override-host-value-using-regex.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jul 2017 16:34:39 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-07-11T16:34:39Z</dc:date>
    <item>
      <title>host name extraction during data upload</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/host-name-extraction-during-data-upload/m-p/309394#M58191</link>
      <description>&lt;P&gt;Just trying to manually add data with different host names in the logs. (with the "add data wizard") &lt;BR /&gt;
What is the best way to extract the host names during the import? (nobud02, appplusf13,...)&lt;/P&gt;

&lt;P&gt;Sample data looks like this:&lt;BR /&gt;
{"host":"nobud02","ident":"dockerd-current","message":"time=\"2017-06-12T18:00:00.745384875+02:00\" level=error msg=\"Handler for POST /containers/weaveproxy/exec returned error: No such container: weaveproxy\"","log_time":"2017-06-12T16:00:00Z"}&lt;BR /&gt;
{"host":"appplusf13","ident":"systemd","message":"Created slice user-0.slice.","log_time":"2017-06-12T16:00:01Z"}&lt;BR /&gt;
{"host":"appngu51","ident":"systemd","message":"Created slice user-0.slice.","log_time":"2017-06-12T16:00:01Z"}&lt;BR /&gt;
{"host":"delme-20170530-rs1","ident":"systemd","message":"Started Session 2594 of user root.","log_time":"2017-06-12T16:00:01Z"}&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:53:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/host-name-extraction-during-data-upload/m-p/309394#M58191</guid>
      <dc:creator>ugoetzen_splunk</dc:creator>
      <dc:date>2020-09-29T14:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: host name extraction during data upload</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/host-name-extraction-during-data-upload/m-p/309395#M58192</link>
      <description>&lt;P&gt;You're looking for &lt;CODE&gt;host_segment&lt;/CODE&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&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.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.6.2/Admin/Inputsconf"&gt;https://docs.splunk.com/Documentation/Splunk/6.6.2/Admin/Inputsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 16:03:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/host-name-extraction-during-data-upload/m-p/309395#M58192</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2017-07-11T16:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: host name extraction during data upload</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/host-name-extraction-during-data-upload/m-p/309396#M58193</link>
      <description>&lt;P&gt;I believe &lt;CODE&gt;host_segment&lt;/CODE&gt; refers to the file path of the data source, not the data itself.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 16:14:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/host-name-extraction-during-data-upload/m-p/309396#M58193</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-07-11T16:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: host name extraction during data upload</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/host-name-extraction-during-data-upload/m-p/309397#M58194</link>
      <description>&lt;P&gt;YOu'd need to setup props/transforms to override host from raw data. See this for reference.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/409734/unable-to-override-host-value-using-regex.html"&gt;https://answers.splunk.com/answers/409734/unable-to-override-host-value-using-regex.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 16:34:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/host-name-extraction-during-data-upload/m-p/309397#M58194</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-07-11T16:34:39Z</dc:date>
    </item>
  </channel>
</rss>

