<?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 Kiwi and Splunk in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Kiwi-and-Splunk/m-p/67092#M13470</link>
    <description>&lt;P&gt;Hi guys,&lt;/P&gt;

&lt;P&gt;I've tried several transformations and even field extractor but I can't get Splunk to extract the hostname out of Kiwi's syslog files.&lt;/P&gt;

&lt;P&gt;I have created the following transformation: (?i)^[^.]*.\w+\t(?P&lt;HOST&gt;[^\t]+) using the field extractor but even after nuking the index I can't get it to extract the hostname/IP out of my .txt syslog files, we have 1 for each device rotated once a day.&lt;/HOST&gt;&lt;/P&gt;

&lt;P&gt;I even created a new sourcetype with no luck.&lt;/P&gt;

&lt;P&gt;Any ideas would be appreciated.&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jun 2012 21:21:01 GMT</pubDate>
    <dc:creator>ihoffmann_wth</dc:creator>
    <dc:date>2012-06-04T21:21:01Z</dc:date>
    <item>
      <title>Kiwi and Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Kiwi-and-Splunk/m-p/67092#M13470</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;

&lt;P&gt;I've tried several transformations and even field extractor but I can't get Splunk to extract the hostname out of Kiwi's syslog files.&lt;/P&gt;

&lt;P&gt;I have created the following transformation: (?i)^[^.]*.\w+\t(?P&lt;HOST&gt;[^\t]+) using the field extractor but even after nuking the index I can't get it to extract the hostname/IP out of my .txt syslog files, we have 1 for each device rotated once a day.&lt;/HOST&gt;&lt;/P&gt;

&lt;P&gt;I even created a new sourcetype with no luck.&lt;/P&gt;

&lt;P&gt;Any ideas would be appreciated.&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2012 21:21:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Kiwi-and-Splunk/m-p/67092#M13470</guid>
      <dc:creator>ihoffmann_wth</dc:creator>
      <dc:date>2012-06-04T21:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Kiwi and Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Kiwi-and-Splunk/m-p/67093#M13471</link>
      <description>&lt;P&gt;Being a New Zealander , I feel compelled to answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;For the "host" field , you might want to consider performing an index time transform (via entrys in props.conf and transforms.conf)&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[kiwisourcetype]
TRANSFORMS-host=extract-kiwi-host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[extract-kiwi-host]
DEST_KEY = MetaData:Host
REGEX = (?i)^[^.]*.w+t([^t]+)
FORMAT = host::$1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can you also post an example from the syslog file so I can check the accuracy of your regex ?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2012 22:08:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Kiwi-and-Splunk/m-p/67093#M13471</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2012-06-04T22:08:33Z</dc:date>
    </item>
  </channel>
</rss>

