<?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: Use a Function without Running a Search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Use-a-Function-without-Running-a-Search/m-p/110479#M28910</link>
    <description>&lt;P&gt;This is a search but you throw out the results and just return the results of your eval function: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="lsof" |head 1 | eval x=urldecode("http%3A%2F%2Fwww.blah.com%2Fsomething%2Fsomething-something") |table x
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can use any sourcetype, I just picked one that should available for everyone.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jun 2014 19:14:34 GMT</pubDate>
    <dc:creator>bkirk</dc:creator>
    <dc:date>2014-06-18T19:14:34Z</dc:date>
    <item>
      <title>Use a Function without Running a Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-a-Function-without-Running-a-Search/m-p/110478#M28909</link>
      <description>&lt;P&gt;Hey guys, is it possible to run an eval function in the search bar without piping a search to it?&lt;/P&gt;

&lt;P&gt;In an attempt to test the urldecode function, I'm trying to run the following on the search bar:&lt;/P&gt;

&lt;P&gt;| eval x=urldecode("http%3A%2F%2Fwww.blah.com%2Fsomething%2Fsomething-something") | search x!=""&lt;/P&gt;

&lt;P&gt;I'm just trying to see what that urldecode function will do with that string, but, I would like to be able to do something like this with other functions in the future.&lt;/P&gt;

&lt;P&gt;Any thoughts?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2014 18:42:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-a-Function-without-Running-a-Search/m-p/110478#M28909</guid>
      <dc:creator>pfernandez133</dc:creator>
      <dc:date>2014-06-18T18:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Use a Function without Running a Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-a-Function-without-Running-a-Search/m-p/110479#M28910</link>
      <description>&lt;P&gt;This is a search but you throw out the results and just return the results of your eval function: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="lsof" |head 1 | eval x=urldecode("http%3A%2F%2Fwww.blah.com%2Fsomething%2Fsomething-something") |table x
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can use any sourcetype, I just picked one that should available for everyone.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2014 19:14:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-a-Function-without-Running-a-Search/m-p/110479#M28910</guid>
      <dc:creator>bkirk</dc:creator>
      <dc:date>2014-06-18T19:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Use a Function without Running a Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-a-Function-without-Running-a-Search/m-p/110480#M28911</link>
      <description>&lt;P&gt;There are multiple options, here are 2 of them&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|stats count | eval x=urldecode("http%3A%2F%2Fwww.blah.com%2Fsomething%2Fsomething-something") | fields - count | search x!=""


| gentimes start=-1 | eval x=urldecode("http%3A%2F%2Fwww.blah.com%2Fsomething%2Fsomething-something") | table x | search x!=""
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Jun 2014 19:25:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-a-Function-without-Running-a-Search/m-p/110480#M28911</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-06-18T19:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Use a Function without Running a Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-a-Function-without-Running-a-Search/m-p/110481#M28912</link>
      <description>&lt;P&gt;That works, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2014 21:05:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-a-Function-without-Running-a-Search/m-p/110481#M28912</guid>
      <dc:creator>pfernandez133</dc:creator>
      <dc:date>2014-06-18T21:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Use a Function without Running a Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-a-Function-without-Running-a-Search/m-p/110482#M28913</link>
      <description>&lt;P&gt;That also works, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2014 21:05:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-a-Function-without-Running-a-Search/m-p/110482#M28913</guid>
      <dc:creator>pfernandez133</dc:creator>
      <dc:date>2014-06-18T21:05:49Z</dc:date>
    </item>
  </channel>
</rss>

