<?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 in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf/m-p/62707#M12536</link>
    <description>&lt;P&gt;This is why I'm asking if you're actually referring to that transform from props.conf. If you just setup the transform but don't refer to it anywhere, it won't ever be applied.&lt;/P&gt;</description>
    <pubDate>Tue, 29 May 2012 20:56:42 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2012-05-29T20:56:42Z</dc:date>
    <item>
      <title>transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf/m-p/62702#M12531</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;[my_fields]
REGEX = ^[[nspaces:clientip]]\s++[[nspaces:ident]]\s++[[nspaces:user_id]]\s++[[sbstring:req_time]]\s++[[qstring:method_url_protocol]]\s++[[nspaces:status]]\s++[[nspaces:bytes]]\s++[[qstring:referer_url]]\s++[[qstring:useragent]]

[method_url_protocol]
DELIMS = " "
FIELDS = method, url, protocol
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hi,&lt;BR /&gt;
  I define these 2 stanzas above in transforms.conf and expect to extract some info from web access log. As you can see the sample quoted string below, it contains 3 fields. However, these 3 fields are not extracted our successsfully. Can you shed some light on it?&lt;/P&gt;

&lt;P&gt;"POST /amazon.com/view.do HTTP/1.1"&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2012 20:05:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-conf/m-p/62702#M12531</guid>
      <dc:creator>shangshin</dc:creator>
      <dc:date>2012-05-29T20:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf/m-p/62703#M12532</link>
      <description>&lt;P&gt;Are you referring to these transforms in props.conf?&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2012 20:12:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-conf/m-p/62703#M12532</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-05-29T20:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf/m-p/62704#M12533</link>
      <description>&lt;P&gt;yes, that's right. In props.conf,&lt;/P&gt;

&lt;P&gt;[access_log_reg]&lt;BR /&gt;
NO_BINARY_CHECK = 1&lt;BR /&gt;
pulldown_type = 1&lt;BR /&gt;
REPORT-myfields = my_fields&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:52:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-conf/m-p/62704#M12533</guid>
      <dc:creator>shangshin</dc:creator>
      <dc:date>2020-09-28T11:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf/m-p/62705#M12534</link>
      <description>&lt;P&gt;What about the method_url_protocol transform? That's the one that, if configured properly, would do the work.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:52:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-conf/m-p/62705#M12534</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2020-09-28T11:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf/m-p/62706#M12535</link>
      <description>&lt;P&gt;here is the complete sample roq in web access log&lt;BR /&gt;
10.39.208.2 - clinet_user_id [29/May/2012:14:04:10 -0400] "POST /amazon.com/view.do HTTP/1.1" 200 1214 "google.com" "Java/1.5.0_06"&lt;/P&gt;

&lt;P&gt;As you can, the field of method, url and protocol can be extracted out as a single value using the first stanza (my_fields). However, the second stanza (method_url_protocol) is unable to parse the value. I guess I didn't set it up properly...&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:52:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-conf/m-p/62706#M12535</guid>
      <dc:creator>shangshin</dc:creator>
      <dc:date>2020-09-28T11:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf/m-p/62707#M12536</link>
      <description>&lt;P&gt;This is why I'm asking if you're actually referring to that transform from props.conf. If you just setup the transform but don't refer to it anywhere, it won't ever be applied.&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2012 20:56:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-conf/m-p/62707#M12536</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-05-29T20:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf/m-p/62708#M12537</link>
      <description>&lt;P&gt;I think Ayn is referring to adding the regex as follows in props.conf.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
[access_log_reg]&lt;BR /&gt;
NO_BINARY_CHECK = 1&lt;BR /&gt;
pulldown_type = 1&lt;BR /&gt;
REPORT-myfields = my_fields,method_url_protocol&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:55:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-conf/m-p/62708#M12537</guid>
      <dc:creator>richprescott</dc:creator>
      <dc:date>2020-09-28T11:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf/m-p/62709#M12538</link>
      <description>&lt;P&gt;Try using &lt;CODE&gt;[[access-request]]&lt;/CODE&gt; to extract method,uri and version.&lt;/P&gt;

&lt;P&gt;Below is what I used and it worked for me.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;REGEX =&lt;BR /&gt;
^[[nspaces:clientip]]\s++[[nspaces:ident]]\s++[[nspaces:user_id]]\s++[[sbstring:req_time]]\s++[[access-request]]\s++[[nspaces:status]]\s++[[nspaces:bytes]]\s++[[qstring:referer_url]]\s++[[qstring:useragent]]\s++[[qstring:someurl]]\s++[[nspaces:response_time]]&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:00:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-conf/m-p/62709#M12538</guid>
      <dc:creator>jpmasseria</dc:creator>
      <dc:date>2020-09-28T15:00:26Z</dc:date>
    </item>
  </channel>
</rss>

