<?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: Transforms.conf and props.conf field extractions in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-and-props-conf-field-extractions/m-p/51851#M12581</link>
    <description>&lt;P&gt;Keep in mind that every set of parenthesis is a capture group.  $1 goes to the very first capture group, not the first named capture group.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Sep 2015 17:18:46 GMT</pubDate>
    <dc:creator>landen99</dc:creator>
    <dc:date>2015-09-08T17:18:46Z</dc:date>
    <item>
      <title>Transforms.conf and props.conf field extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-and-props-conf-field-extractions/m-p/51840#M12570</link>
      <description>&lt;P&gt;Hey fellow Splunker's. I am trying to figure out what i am doing wrong in the transforms.conf to create the proper field extractions. I feel like this should work. The format of my regex should be right, but i am not getting any results returned in the fields that I want to extract. Any help that can be given to fix this issue would be greatly appreachated. Thank you. &lt;/P&gt;

&lt;P&gt;Below is an example of the transforms.conf and the props.conf files. &lt;/P&gt;

&lt;P&gt;(Transforms.conf)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[vmware-host]
REGEX = ^(?:\S+\s){3}(?P&amp;lt;Hostname&amp;gt;\S+)(?:\S+\s){4}(?P&amp;lt;ANSI_Standard&amp;gt;[^:]+)(?:\S+\s){3}(?P&amp;lt;Message_ID&amp;gt;\S+)\s(?P&amp;lt;Priority&amp;gt;\S+)\s\'(?P&amp;lt;Category&amp;gt;\w+)\'\]\s\[(?P&amp;lt;Event_Type&amp;gt;[^\]]+)\]
FORMAT = fieldOne::$1, fieldTwo::$2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(props.conf)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[VMwareESXi]
pulldown_type = 1
TRANSFORMS = vmware-host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Sep 2012 15:52:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-and-props-conf-field-extractions/m-p/51840#M12570</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-09-05T15:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms.conf and props.conf field extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-and-props-conf-field-extractions/m-p/51841#M12571</link>
      <description>&lt;P&gt;Please indent code sections with 4 spaces at the beginning of the line. That way they will show correctly here on the site. Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 16:16:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-and-props-conf-field-extractions/m-p/51841#M12571</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-09-05T16:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms.conf and props.conf field extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-and-props-conf-field-extractions/m-p/51842#M12572</link>
      <description>&lt;P&gt;Also, which of the settings are you referring to? I see multiple things going on, of which some parts are commented out. What are you expecting, and what's not working, specifically?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 16:18:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-and-props-conf-field-extractions/m-p/51842#M12572</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-09-05T16:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms.conf and props.conf field extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-and-props-conf-field-extractions/m-p/51843#M12573</link>
      <description>&lt;P&gt;Thank you for responding. We are just commenting them out to try and figure out what the issue is of why we can not get the regex to work. We are trying to get the transforms.conf file to work the [vmware-host]&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 16:53:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-and-props-conf-field-extractions/m-p/51843#M12573</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-09-05T16:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms.conf and props.conf field extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-and-props-conf-field-extractions/m-p/51844#M12574</link>
      <description>&lt;P&gt;I removed the parts of the configuration files that were not necessary.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 17:23:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-and-props-conf-field-extractions/m-p/51844#M12574</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-09-05T17:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms.conf and props.conf field extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-and-props-conf-field-extractions/m-p/51845#M12575</link>
      <description>&lt;P&gt;I am not sure why you need the transforms.conf stanza at all, given the way you wrote your regular expression.&lt;/P&gt;

&lt;P&gt;Why not&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[VMwareESXi]
pulldown_type = 1
EXTRACT-e1 =^(?:\S+\s){3}(?P&amp;lt;Hostname&amp;gt;\S+)(?:\S+\s){4}(?P&amp;lt;ANSI_Standard&amp;gt;[^:]+)(?:\S+\s){3}(?P&amp;lt;Message_ID&amp;gt;\S+)\s(?P&amp;lt;Priority&amp;gt;\S+)\s\'(?P&amp;lt;Category&amp;gt;\w+)\'\]\s\[(?P&amp;lt;Event_Type&amp;gt;[^\]]+)\]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I do see some strange things in the regular expression. Can you post a snippet of the ESXi log file that you are trying to use?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 18:13:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-and-props-conf-field-extractions/m-p/51845#M12575</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-09-05T18:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms.conf and props.conf field extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-and-props-conf-field-extractions/m-p/51846#M12576</link>
      <description>&lt;P&gt;Thank you so much. &lt;BR /&gt;
Via the ESXi sourcetype:&lt;/P&gt;

&lt;P&gt;Sep  5 14:21:34 cam.company.com Sep  5 18:21:34 Vpxa: [2012-09-05 18:21:34.420 17C3DB90 verbose 'App'] Set internal stats for VM: 272 (vpxa VM id), 4181 (vpxd VM id). Is FT primary? 0&lt;BR /&gt;
Sep  5 14:21:34 cam.company.com Sep  5 18:21:34 Vpxa: [2012-09-05 18:21:34.664 17B7AB90 verbose 'VpxaHalCnxHostagent'] Received callback in WaitForUpdatesDone&lt;BR /&gt;
Sep  5 14:21:34 cam.company.com Sep  5 18:21:34 Vpxa: [2012-09-05 18:21:34.664 17B7AB90 verbose 'VpxaHalCnxHostagent'] [VpxaHalCnxHostagent::ProcessUpdate] Applying updates from 3675467 to 3675468 (at 3675467)&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 18:28:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-and-props-conf-field-extractions/m-p/51846#M12576</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-09-05T18:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms.conf and props.conf field extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-and-props-conf-field-extractions/m-p/51847#M12577</link>
      <description>&lt;P&gt;If any additional information or logs are needed, just let me know. I will be keeping a close watch on this question.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 18:43:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-and-props-conf-field-extractions/m-p/51847#M12577</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-09-05T18:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms.conf and props.conf field extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-and-props-conf-field-extractions/m-p/51848#M12578</link>
      <description>&lt;P&gt;Thanks for the updates. Now I can see a reason to use the transforms. But, as Bob pointed out in the comment below, you should use REPORT instead of TRANSFORM in props.conf. It is much better to build a search-time field extraction.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[VMwareESXi]
pulldown_type = 1
REPORT-r1 = vmware-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;[vmware-host]
REGEX=(\w+\s\d+\s\d+:\d+:\d+)\s(\S+)\s(\w+\s\d+\s\d+:\d+:\d+)\s(\S+)\[(\S+\s\S+)\s(\S+)\s(\S+)\'(\S+)\'\] \s*(.*)
FORMAT=date1::$1,hostname::$2, date2::$3, servicename::$4, date3::$5,hexcode::$6,reportinglevel::$7, reportingcomponent::$8,message::$9
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note that you don't want to break the lines. So if you copy-and-paste this (which is a good idea), put the lines for the REGEX and the FORMAT back together again!&lt;BR /&gt;
I named your fields somewhat arbitrarily, but hopefully this will give you a good idea of how to finish the job.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2012 22:51:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-and-props-conf-field-extractions/m-p/51848#M12578</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-09-06T22:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms.conf and props.conf field extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-and-props-conf-field-extractions/m-p/51849#M12579</link>
      <description>&lt;P&gt;This should work but it is not a best practice as it extracts the field at index time. This places more load on your indexers as well as taking more space in your index. If you replace TRANSFORMS with REPORT in your props.conf this will run at search time which is more efficient. &lt;/P&gt;

&lt;P&gt;Although switching to EXTRACT would be my preference. Your initial post was close to an extract regex.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2012 13:36:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-and-props-conf-field-extractions/m-p/51849#M12579</guid>
      <dc:creator>BobM</dc:creator>
      <dc:date>2012-09-12T13:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms.conf and props.conf field extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-and-props-conf-field-extractions/m-p/51850#M12580</link>
      <description>&lt;P&gt;Bob - you are so right! I must have been brain-dead on this one!  I have updated my answer to reflect your comment.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2012 08:22:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-and-props-conf-field-extractions/m-p/51850#M12580</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-09-13T08:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Transforms.conf and props.conf field extractions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-and-props-conf-field-extractions/m-p/51851#M12581</link>
      <description>&lt;P&gt;Keep in mind that every set of parenthesis is a capture group.  $1 goes to the very first capture group, not the first named capture group.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2015 17:18:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transforms-conf-and-props-conf-field-extractions/m-p/51851#M12581</guid>
      <dc:creator>landen99</dc:creator>
      <dc:date>2015-09-08T17:18:46Z</dc:date>
    </item>
  </channel>
</rss>

