<?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 transforms with SOURCE_KEY using FIELDS in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/transforms-with-SOURCE-KEY-using-FIELDS/m-p/260563#M78169</link>
    <description>&lt;P&gt;Dataset&lt;/P&gt;

&lt;P&gt;10.24.11.102 - user1 [10/Sep/2016:02:46:12 -0400] "GET &lt;A href="http://www.foo.org:80/lib/stone/csrf/token.json" target="_blank"&gt;http://www.foo.org:80/lib/stone/csrf/token.json&lt;/A&gt; HTTP/1.1" 200 393&lt;BR /&gt;
10.32.52.18 - user2 [10/Sep/2016:02:28:21 -0400] "GET &lt;A href="https://aaa.idm.purple.org:8443/login" target="_blank"&gt;https://aaa.idm.purple.org:8443/login&lt;/A&gt; HTTP/1.1" 200 2049&lt;BR /&gt;
10.210.18.17 - - [10/Sep/2016:00:10:57 -0400] "GET &lt;A href="http://explore.google.org/robots.txt" target="_blank"&gt;http://explore.google.org/robots.txt&lt;/A&gt; HTTP/1.1" 200 2049&lt;BR /&gt;
10.31.2.124 - user3 [09/Sep/2016:21:04:47 -0400] "POST &lt;A href="http://bar.tree.com:80/authn-callback" target="_blank"&gt;http://bar.tree.com:80/authn-callback&lt;/A&gt; HTTP/1.1" 200 1562&lt;/P&gt;

&lt;P&gt;When I search for &lt;BR /&gt;
  index=library sourcetype=proxy_access&lt;/P&gt;

&lt;P&gt;I do not get back  ** &lt;EM&gt;method,url,protocol&lt;/EM&gt;  ** which would come from ** data_from_method_url**&lt;/P&gt;

&lt;P&gt;When I search for &lt;/P&gt;

&lt;P&gt;index=library sourcetype=proxy_access   | extract reload=T&lt;BR /&gt;
  | extract ProzyData&lt;BR /&gt;
  | extract data_from_method_url&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;method, url, and protocol are all extracted correctly.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;The first extraction REPORT-Extract is working as I get all of the expected fields.&lt;BR /&gt;
  GET &lt;A href="http://www.foo.org:80/lib/stone/csrf/token.json" target="_blank"&gt;http://www.foo.org:80/lib/stone/csrf/token.json&lt;/A&gt; HTTP/1.1&lt;BR /&gt;
  GET &lt;A href="https://aaa.idm.purple.org:8443/login" target="_blank"&gt;https://aaa.idm.purple.org:8443/login&lt;/A&gt; HTTP/1.1&lt;BR /&gt;
  GET &lt;A href="http://explore.google.org/robots.txt" target="_blank"&gt;http://explore.google.org/robots.txt&lt;/A&gt; HTTP/1.1&lt;BR /&gt;
  POST &lt;A href="http://bar.tree.com:80/authn-callback" target="_blank"&gt;http://bar.tree.com:80/authn-callback&lt;/A&gt; HTTP/1.1&lt;/P&gt;

&lt;P&gt;How do I get the method, url, and protocol to extract using the props and transforms.&lt;/P&gt;

&lt;P&gt;I have done many version of these files, but this is how they currently read.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;props.conf
  [proxy_access]
  REPORT-Extract = ProzyData
  description = Access Logs
  KV_MODE = none

  [pull_from_method_url]
  REPORT-method_from_method_url = data_from_method_url
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;PRE&gt;&lt;CODE&gt;transforms.conf
  [ProzyData]
  DELIMS = " "
  FIELDS =    "src_ip","Unknown","user","datetime","timeoffset","method_url","responce","bytes"

  ################ extract from source_key #############
  [data_from_method_url]
  SOURCE_KEY = method_url
  DELIMS = " "
  FIELDS = method,url,protocol
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 29 Sep 2020 11:28:11 GMT</pubDate>
    <dc:creator>willamwar</dc:creator>
    <dc:date>2020-09-29T11:28:11Z</dc:date>
    <item>
      <title>transforms with SOURCE_KEY using FIELDS</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transforms-with-SOURCE-KEY-using-FIELDS/m-p/260563#M78169</link>
      <description>&lt;P&gt;Dataset&lt;/P&gt;

&lt;P&gt;10.24.11.102 - user1 [10/Sep/2016:02:46:12 -0400] "GET &lt;A href="http://www.foo.org:80/lib/stone/csrf/token.json" target="_blank"&gt;http://www.foo.org:80/lib/stone/csrf/token.json&lt;/A&gt; HTTP/1.1" 200 393&lt;BR /&gt;
10.32.52.18 - user2 [10/Sep/2016:02:28:21 -0400] "GET &lt;A href="https://aaa.idm.purple.org:8443/login" target="_blank"&gt;https://aaa.idm.purple.org:8443/login&lt;/A&gt; HTTP/1.1" 200 2049&lt;BR /&gt;
10.210.18.17 - - [10/Sep/2016:00:10:57 -0400] "GET &lt;A href="http://explore.google.org/robots.txt" target="_blank"&gt;http://explore.google.org/robots.txt&lt;/A&gt; HTTP/1.1" 200 2049&lt;BR /&gt;
10.31.2.124 - user3 [09/Sep/2016:21:04:47 -0400] "POST &lt;A href="http://bar.tree.com:80/authn-callback" target="_blank"&gt;http://bar.tree.com:80/authn-callback&lt;/A&gt; HTTP/1.1" 200 1562&lt;/P&gt;

&lt;P&gt;When I search for &lt;BR /&gt;
  index=library sourcetype=proxy_access&lt;/P&gt;

&lt;P&gt;I do not get back  ** &lt;EM&gt;method,url,protocol&lt;/EM&gt;  ** which would come from ** data_from_method_url**&lt;/P&gt;

&lt;P&gt;When I search for &lt;/P&gt;

&lt;P&gt;index=library sourcetype=proxy_access   | extract reload=T&lt;BR /&gt;
  | extract ProzyData&lt;BR /&gt;
  | extract data_from_method_url&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;method, url, and protocol are all extracted correctly.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;The first extraction REPORT-Extract is working as I get all of the expected fields.&lt;BR /&gt;
  GET &lt;A href="http://www.foo.org:80/lib/stone/csrf/token.json" target="_blank"&gt;http://www.foo.org:80/lib/stone/csrf/token.json&lt;/A&gt; HTTP/1.1&lt;BR /&gt;
  GET &lt;A href="https://aaa.idm.purple.org:8443/login" target="_blank"&gt;https://aaa.idm.purple.org:8443/login&lt;/A&gt; HTTP/1.1&lt;BR /&gt;
  GET &lt;A href="http://explore.google.org/robots.txt" target="_blank"&gt;http://explore.google.org/robots.txt&lt;/A&gt; HTTP/1.1&lt;BR /&gt;
  POST &lt;A href="http://bar.tree.com:80/authn-callback" target="_blank"&gt;http://bar.tree.com:80/authn-callback&lt;/A&gt; HTTP/1.1&lt;/P&gt;

&lt;P&gt;How do I get the method, url, and protocol to extract using the props and transforms.&lt;/P&gt;

&lt;P&gt;I have done many version of these files, but this is how they currently read.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;props.conf
  [proxy_access]
  REPORT-Extract = ProzyData
  description = Access Logs
  KV_MODE = none

  [pull_from_method_url]
  REPORT-method_from_method_url = data_from_method_url
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;PRE&gt;&lt;CODE&gt;transforms.conf
  [ProzyData]
  DELIMS = " "
  FIELDS =    "src_ip","Unknown","user","datetime","timeoffset","method_url","responce","bytes"

  ################ extract from source_key #############
  [data_from_method_url]
  SOURCE_KEY = method_url
  DELIMS = " "
  FIELDS = method,url,protocol
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:28:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transforms-with-SOURCE-KEY-using-FIELDS/m-p/260563#M78169</guid>
      <dc:creator>willamwar</dc:creator>
      <dc:date>2020-09-29T11:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: transforms with SOURCE_KEY using FIELDS</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transforms-with-SOURCE-KEY-using-FIELDS/m-p/260564#M78170</link>
      <description>&lt;P&gt;In your props.conf you have a stanza named &lt;EM&gt;pull_from_method_url&lt;/EM&gt;. This settings under here should be under the same stanza at the other transform, &lt;EM&gt;proxy_access&lt;/EM&gt;, as this is the sourcetype of your data. Stanza headings should be either sourcetype, source or host - unless I am misunderstanding and your data does have the sourcetype of &lt;EM&gt;pull_from_method_url&lt;/EM&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:33:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transforms-with-SOURCE-KEY-using-FIELDS/m-p/260564#M78170</guid>
      <dc:creator>lquinn</dc:creator>
      <dc:date>2020-09-29T11:33:15Z</dc:date>
    </item>
  </channel>
</rss>

