<?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 from log file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/host-name-from-log-file/m-p/483313#M82782</link>
    <description>&lt;P&gt;You mean i should use something like this?&lt;/P&gt;

&lt;P&gt;Override host:&lt;BR /&gt;
[hostoverride]&lt;BR /&gt;
DEST_KEY = MetaData:Host&lt;BR /&gt;
REGEX = ^[^'\n]*'(?P\w+) &lt;BR /&gt;
FORMAT = host::$1&lt;/P&gt;</description>
    <pubDate>Sun, 26 Apr 2020 22:33:38 GMT</pubDate>
    <dc:creator>indeed_2000</dc:creator>
    <dc:date>2020-04-26T22:33:38Z</dc:date>
    <item>
      <title>host name from log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/host-name-from-log-file/m-p/483311#M82780</link>
      <description>&lt;P&gt;hi i have lot's of log file that start with this line for each log&lt;BR /&gt;
**********    LOGFILE FOR SERVER 'host22', AT THE DAY OF : 2020/04/25   **********&lt;/P&gt;

&lt;P&gt;now how can i set host name for each log, &lt;BR /&gt;
expected host name: host22&lt;/P&gt;

&lt;P&gt;FYI: all log files copy manually from each server daily, and not use forwarder in this scenario.&lt;BR /&gt;
all loge copy in /opt like below, and splunk continuously index this path: &lt;BR /&gt;
log1&lt;BR /&gt;
log2&lt;BR /&gt;
log3&lt;BR /&gt;
...&lt;/P&gt;

&lt;P&gt;any recommendation?&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 26 Apr 2020 17:32:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/host-name-from-log-file/m-p/483311#M82780</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2020-04-26T17:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: host name from log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/host-name-from-log-file/m-p/483312#M82781</link>
      <description>&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;P&gt;try &lt;CODE&gt;INGEST_EVAL&lt;/CODE&gt; or &lt;CODE&gt;DEST_KEY = MetaData:Host&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Apr 2020 19:45:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/host-name-from-log-file/m-p/483312#M82781</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-26T19:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: host name from log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/host-name-from-log-file/m-p/483313#M82782</link>
      <description>&lt;P&gt;You mean i should use something like this?&lt;/P&gt;

&lt;P&gt;Override host:&lt;BR /&gt;
[hostoverride]&lt;BR /&gt;
DEST_KEY = MetaData:Host&lt;BR /&gt;
REGEX = ^[^'\n]*'(?P\w+) &lt;BR /&gt;
FORMAT = host::$1&lt;/P&gt;</description>
      <pubDate>Sun, 26 Apr 2020 22:33:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/host-name-from-log-file/m-p/483313#M82782</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2020-04-26T22:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: host name from log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/host-name-from-log-file/m-p/483314#M82783</link>
      <description>&lt;P&gt;yes, Don't forget props.conf.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 09:03:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/host-name-from-log-file/m-p/483314#M82783</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-27T09:03:43Z</dc:date>
    </item>
  </channel>
</rss>

