<?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: Field Extraction - Parsing - Regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Parsing-Regex/m-p/57371#M13998</link>
    <description>&lt;P&gt;I am new to splunk. Can you please tell how to achieve this? I am unable to find the search query using splunk&lt;/P&gt;

&lt;P&gt;| eval Field2=substr(message,  charindex(message, "&amp;amp;lmt="), charindex(message, "&amp;amp;dt="))&lt;/P&gt;

&lt;P&gt;I have used some thing as above but charindex doesnt work.&lt;/P&gt;

&lt;P&gt;here "message" is the Field which is been extracted during the data import.&lt;/P&gt;</description>
    <pubDate>Tue, 22 May 2012 09:48:57 GMT</pubDate>
    <dc:creator>abhijitnayak</dc:creator>
    <dc:date>2012-05-22T09:48:57Z</dc:date>
    <item>
      <title>Field Extraction - Parsing - Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Parsing-Regex/m-p/57369#M13996</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;

&lt;P&gt;I am trying to extract fields from the multivalued Field which has the following&lt;/P&gt;

&lt;P&gt;&lt;A href="http://pubads.g.doubleclick.net/gampad/ads?correlator=1329033559899&amp;amp;output=json_html&amp;amp;callback=GA_googleSetAdContentsBySlotForSync&amp;amp;impl=s&amp;amp;client=ca-pub-3341866503936280&amp;amp;slotname=Argaam_AllPages_LeaderBoard_728x90&amp;amp;page_slots=Argaam_AllPages_LeaderBoard_728x90&amp;amp;cookie=ID%3Dc8e744ff06435b06%3AT%3D1328766284%3AS%3DALNI_MZSu26hgR2sN5WOP8rB52YX_YtF5A&amp;amp;url=http%3A%2F%2Fwww.argaam.com%2FPortal%2FDefault.aspx&amp;amp;lmt=1329033560&amp;amp;dt=1329033560159&amp;amp;cc=100&amp;amp;oe=utf-8&amp;amp;biw=1920&amp;amp;bih=985&amp;amp;adk=3690209964&amp;amp;adx=460&amp;amp;ady=52&amp;amp;ifi=1&amp;amp;oid=3&amp;amp;u_tz=240&amp;amp;u_his=3&amp;amp;u_java=true&amp;amp;u_h=1080&amp;amp;u_w=1920&amp;amp;u_ah=1040&amp;amp;u_aw=1920&amp;amp;u_cd=24&amp;amp;flash=10.3.181.34&amp;amp;gads=v2&amp;amp;ga_vid=355700385.1328766284&amp;amp;ga_sid=1329023597&amp;amp;ga_hid=818285417&amp;amp;ga_fc=true"&gt;http://pubads.g.doubleclick.net/gampad/ads?correlator=1329033559899&amp;amp;output=json_html&amp;amp;callback=GA_googleSetAdContentsBySlotForSync&amp;amp;impl=s&amp;amp;client=ca-pub-3341866503936280&amp;amp;slotname=Argaam_AllPages_LeaderBoard_728x90&amp;amp;page_slots=Argaam_AllPages_LeaderBoard_728x90&amp;amp;cookie=ID%3Dc8e744ff06435b06%3AT%3D1328766284%3AS%3DALNI_MZSu26hgR2sN5WOP8rB52YX_YtF5A&amp;amp;url=http%3A%2F%2Fwww.argaam.com%2FPortal%2FDefault.aspx&amp;amp;lmt=1329033560&amp;amp;dt=1329033560159&amp;amp;cc=100&amp;amp;oe=utf-8&amp;amp;biw=1920&amp;amp;bih=985&amp;amp;adk=3690209964&amp;amp;adx=460&amp;amp;ady=52&amp;amp;ifi=1&amp;amp;oid=3&amp;amp;u_tz=240&amp;amp;u_his=3&amp;amp;u_java=true&amp;amp;u_h=1080&amp;amp;u_w=1920&amp;amp;u_ah=1040&amp;amp;u_aw=1920&amp;amp;u_cd=24&amp;amp;flash=10.3.181.34&amp;amp;gads=v2&amp;amp;ga_vid=355700385.1328766284&amp;amp;ga_sid=1329023597&amp;amp;ga_hid=818285417&amp;amp;ga_fc=true&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The parameters are usually separated by param="Value"&lt;/P&gt;

&lt;P&gt;From the above text = GA_googleSetAdContentsBySlotForSync&lt;/P&gt;

&lt;P&gt;Parameter = &amp;amp;callback&lt;BR /&gt;
value = GA_googleSetAdContentsBySlotForSync&lt;/P&gt;

&lt;P&gt;Parameter = &amp;amp;flash&lt;BR /&gt;
value = 10.3.181.34&lt;/P&gt;

&lt;P&gt;The text above is one field and this parameter extraction has to be done only to websites which are search engines ..&lt;/P&gt;

&lt;P&gt;Is there a way to extract the field values even if it is not dynamic way of extraction?&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2012 05:51:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Parsing-Regex/m-p/57369#M13996</guid>
      <dc:creator>abhijitnayak</dc:creator>
      <dc:date>2012-05-22T05:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction - Parsing - Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Parsing-Regex/m-p/57370#M13997</link>
      <description>&lt;P&gt;I don't understand what's not working and how you would like things to work. Could you state your problem more clearly please?&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2012 06:25:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Parsing-Regex/m-p/57370#M13997</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-05-22T06:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction - Parsing - Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Parsing-Regex/m-p/57371#M13998</link>
      <description>&lt;P&gt;I am new to splunk. Can you please tell how to achieve this? I am unable to find the search query using splunk&lt;/P&gt;

&lt;P&gt;| eval Field2=substr(message,  charindex(message, "&amp;amp;lmt="), charindex(message, "&amp;amp;dt="))&lt;/P&gt;

&lt;P&gt;I have used some thing as above but charindex doesnt work.&lt;/P&gt;

&lt;P&gt;here "message" is the Field which is been extracted during the data import.&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2012 09:48:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Parsing-Regex/m-p/57371#M13998</guid>
      <dc:creator>abhijitnayak</dc:creator>
      <dc:date>2012-05-22T09:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction - Parsing - Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Parsing-Regex/m-p/57372#M13999</link>
      <description>&lt;P&gt;Field2 that needs to be extracted is 1329033560.. can you please suggest the regex to derive this multi valued field?&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2012 09:50:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Parsing-Regex/m-p/57372#M13999</guid>
      <dc:creator>abhijitnayak</dc:creator>
      <dc:date>2012-05-22T09:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction - Parsing - Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Parsing-Regex/m-p/57373#M14000</link>
      <description>&lt;P&gt;Did you look at all the fields, not just those shown on the left?  Click Edit, and in the pop-up window that field should already be extracted as "correlator".&lt;/P&gt;

&lt;P&gt;Splunk should automatically extract a value any time it sees a key=value.  How it determines what are "interesting fields" I'm not sure.&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2012 02:34:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Parsing-Regex/m-p/57373#M14000</guid>
      <dc:creator>mikelanghorst</dc:creator>
      <dc:date>2012-05-23T02:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction - Parsing - Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Parsing-Regex/m-p/57374#M14001</link>
      <description>&lt;P&gt;Hi Mike , I dont this its so easy .&lt;BR /&gt;
We would have to parse and cut the words between &amp;amp;param1="WORD"&amp;amp;param2&lt;BR /&gt;
Let me know if there is a way to do this.&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2012 05:01:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Parsing-Regex/m-p/57374#M14001</guid>
      <dc:creator>abhijitnayak</dc:creator>
      <dc:date>2012-05-23T05:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction - Parsing - Regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Parsing-Regex/m-p/57375#M14002</link>
      <description>&lt;P&gt;GOT IT!!! &lt;BR /&gt;
 source="POC.txt" | regex Field2="google" | makemv delim="&amp;amp;" Field2 &lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2012 06:12:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-Parsing-Regex/m-p/57375#M14002</guid>
      <dc:creator>abhijitnayak</dc:creator>
      <dc:date>2012-05-28T06:12:10Z</dc:date>
    </item>
  </channel>
</rss>

