<?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: creating field for url in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/creating-field-for-url/m-p/75963#M19184</link>
    <description>&lt;P&gt;Credit goes to @Drainy as he showed me gskinner aaaaaages ago.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jun 2013 12:14:09 GMT</pubDate>
    <dc:creator>MHibbin</dc:creator>
    <dc:date>2013-06-26T12:14:09Z</dc:date>
    <item>
      <title>creating field for url</title>
      <link>https://community.splunk.com/t5/Splunk-Search/creating-field-for-url/m-p/75958#M19179</link>
      <description>&lt;P&gt;How can I create a field  for url? I am unable to do it by field extraction.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2013 09:45:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/creating-field-for-url/m-p/75958#M19179</guid>
      <dc:creator>labani</dc:creator>
      <dc:date>2013-06-26T09:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: creating field for url</title>
      <link>https://community.splunk.com/t5/Splunk-Search/creating-field-for-url/m-p/75959#M19180</link>
      <description>&lt;P&gt;like nr.5 said: need more input&lt;BR /&gt;
please provide more detailed information about what you want to achieve and provide some example log data - thanks&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2013 09:47:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/creating-field-for-url/m-p/75959#M19180</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2013-06-26T09:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: creating field for url</title>
      <link>https://community.splunk.com/t5/Splunk-Search/creating-field-for-url/m-p/75960#M19181</link>
      <description>&lt;P&gt;2013 Jun 22 09:33:40 tracker1 httpproxy_access[41545]: 10.10.34.17   3398 TCP_MISS/200 0 NONHTTP binary://217.212.238.41:80 - DIRECT/217.212.238.41 - [acl=nonhttp] [cat=-] [err=-]&lt;BR /&gt;
i have log like this. i want to extract url field. thank you&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:10:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/creating-field-for-url/m-p/75960#M19181</guid>
      <dc:creator>labani</dc:creator>
      <dc:date>2020-09-28T14:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: creating field for url</title>
      <link>https://community.splunk.com/t5/Splunk-Search/creating-field-for-url/m-p/75961#M19182</link>
      <description>&lt;P&gt;I think the regular expression you are looking for is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\w+\:\/\/[^\s]+
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;EDIT: Probably get away with using the following, however I have a habit of escaping the characters:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\w+://[^\s]+
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can test this using the &lt;CODE&gt;rex&lt;/CODE&gt; command, like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;yourBaseSearch&amp;gt; | rex field=_raw "(?P&amp;lt;url&amp;gt;\w+\:\/\/[^\s]+)" | table _time url _raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(Don't really need the table part, just makes it easier to match it up).&lt;/P&gt;

&lt;P&gt;Once you have your regular expression correct, you can just paste that into the IFX (Interactive Field eXtractor).&lt;/P&gt;

&lt;P&gt;Additionally, for testing regular expressions, the following site is very helpful:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://gskinner.com/RegExr/"&gt;http://gskinner.com/RegExr/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2013 11:31:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/creating-field-for-url/m-p/75961#M19182</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2013-06-26T11:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: creating field for url</title>
      <link>https://community.splunk.com/t5/Splunk-Search/creating-field-for-url/m-p/75962#M19183</link>
      <description>&lt;P&gt;gskinner is truly one of the best online regex testing tools [^]&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2013 11:43:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/creating-field-for-url/m-p/75962#M19183</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2013-06-26T11:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: creating field for url</title>
      <link>https://community.splunk.com/t5/Splunk-Search/creating-field-for-url/m-p/75963#M19184</link>
      <description>&lt;P&gt;Credit goes to @Drainy as he showed me gskinner aaaaaages ago.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2013 12:14:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/creating-field-for-url/m-p/75963#M19184</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2013-06-26T12:14:09Z</dc:date>
    </item>
  </channel>
</rss>

