<?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 Extracting a field thats not recognized in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-thats-not-recognized/m-p/463547#M130685</link>
    <description>&lt;P&gt;My rawdata from log is below&lt;/P&gt;

&lt;P&gt;METHOD="POST" URI="CALLOUT-LOG" USER_ID_DERIVED="00532000004sefcAAA" EVENT_TYPE="ApexCallout" TYPE="REST" CLIENT_IP="" URL=""&lt;A href="https://api.contact.com/ContactAuthorizationServer/Token%22" target="_blank"&gt;https://api.contact.com/ContactAuthorizationServer/Token"&lt;/A&gt;" RUN_TIME="532" SESSION_KEY="" TIMESTAMP="20200529045947.928" REQUEST_SIZE="76" LOGIN_KEY="" REQUEST_ID="4WCb1_2dhf_Zn9-qbvXjs-"&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/290864-screen-shot-2020-05-28-at-113515-pm.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Splunk assumes URL as "" since URL value is passed to index in 2 double quotes.&lt;/P&gt;

&lt;P&gt;I used eval to parse out and get the actual URL to a field in search as URLX but the field URLX becomes jumbled if I use like stats count by URLX.&lt;/P&gt;

&lt;P&gt;my eval is eval .....   URLX=replace(_raw, ".&lt;EM&gt;URL=\"\"(.&lt;/EM&gt;)\"\" RUN_TIME.*", "\1"), "/")&lt;/P&gt;

&lt;P&gt;How do I properly tell splunk to get URL extracted without eval in the first place.&lt;/P&gt;

&lt;P&gt;Thanks fpr help in advance.  &lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 05:33:00 GMT</pubDate>
    <dc:creator>venkatachalamvi</dc:creator>
    <dc:date>2020-09-30T05:33:00Z</dc:date>
    <item>
      <title>Extracting a field thats not recognized</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-thats-not-recognized/m-p/463547#M130685</link>
      <description>&lt;P&gt;My rawdata from log is below&lt;/P&gt;

&lt;P&gt;METHOD="POST" URI="CALLOUT-LOG" USER_ID_DERIVED="00532000004sefcAAA" EVENT_TYPE="ApexCallout" TYPE="REST" CLIENT_IP="" URL=""&lt;A href="https://api.contact.com/ContactAuthorizationServer/Token%22" target="_blank"&gt;https://api.contact.com/ContactAuthorizationServer/Token"&lt;/A&gt;" RUN_TIME="532" SESSION_KEY="" TIMESTAMP="20200529045947.928" REQUEST_SIZE="76" LOGIN_KEY="" REQUEST_ID="4WCb1_2dhf_Zn9-qbvXjs-"&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/290864-screen-shot-2020-05-28-at-113515-pm.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Splunk assumes URL as "" since URL value is passed to index in 2 double quotes.&lt;/P&gt;

&lt;P&gt;I used eval to parse out and get the actual URL to a field in search as URLX but the field URLX becomes jumbled if I use like stats count by URLX.&lt;/P&gt;

&lt;P&gt;my eval is eval .....   URLX=replace(_raw, ".&lt;EM&gt;URL=\"\"(.&lt;/EM&gt;)\"\" RUN_TIME.*", "\1"), "/")&lt;/P&gt;

&lt;P&gt;How do I properly tell splunk to get URL extracted without eval in the first place.&lt;/P&gt;

&lt;P&gt;Thanks fpr help in advance.  &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:33:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-thats-not-recognized/m-p/463547#M130685</guid>
      <dc:creator>venkatachalamvi</dc:creator>
      <dc:date>2020-09-30T05:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting a field thats not recognized</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-thats-not-recognized/m-p/463548#M130686</link>
      <description>&lt;P&gt;You may want to use rex to extract url-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|rex field=URL "\"(?&amp;lt;URL&amp;gt;[^\"]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 May 2020 10:07:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-thats-not-recognized/m-p/463548#M130686</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2020-05-29T10:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting a field thats not recognized</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-thats-not-recognized/m-p/463549#M130687</link>
      <description>&lt;P&gt;I eventually got it using this below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;".*URL=\"\"(?P&amp;lt;urlx&amp;gt;.*)\"\" .*" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thank you for the responses.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 04:16:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-thats-not-recognized/m-p/463549#M130687</guid>
      <dc:creator>venkatachalamvi</dc:creator>
      <dc:date>2020-06-02T04:16:37Z</dc:date>
    </item>
  </channel>
</rss>

