<?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 a parameterized transaction search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-parameterized-transaction-search/m-p/10198#M403</link>
    <description>&lt;P&gt;You can use transactiontypes, but I suggest you use saved searches. You don't &lt;EM&gt;have&lt;/EM&gt; to use them with form searches, but you can easily convert this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=blah sessionid=$sessid$ | transaction startswith="blah" endswith="yadda" fields=sessionid
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And invoke it with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| savedsearch "Name you saved it under" sessid="id123456" 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 16 Mar 2010 08:46:49 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2010-03-16T08:46:49Z</dc:date>
    <item>
      <title>Creating a parameterized transaction search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-parameterized-transaction-search/m-p/10196#M401</link>
      <description>&lt;P&gt;Our office has a specific TRANSACTION search we do frequently to track all events related to a particular user. The search is always the same except for the user ID, which the Splunk user copies in from an email.&lt;/P&gt;

&lt;P&gt;What's the best way to store the search so that I can quickly call it from the search bar but plug in the Session ID I want to restrict results to?&lt;/P&gt;

&lt;P&gt;I guess I could use a macro and stick a | WHERE after it, but I was wondering if there was a more proper/efficient or proper way to do it. &lt;/P&gt;

&lt;P&gt;I see there's a "&lt;A href="http://www.splunk.com/base/Documentation/latest/Knowledge/Definetransactions" rel="nofollow"&gt;transaction type&lt;/A&gt;" feautre I can use-- is this the right solution?&lt;/P&gt;

&lt;P&gt;I also know I can do a &lt;A href="http://www.splunk.com/base/Documentation/latest/Developer/FormSearchIntro" rel="nofollow"&gt;Form Search&lt;/A&gt; but in this case we want to use the "plain" search bar.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2010 13:13:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-parameterized-transaction-search/m-p/10196#M401</guid>
      <dc:creator>Justin_Grant</dc:creator>
      <dc:date>2010-03-15T13:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a parameterized transaction search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-parameterized-transaction-search/m-p/10197#M402</link>
      <description>&lt;P&gt;A Form search definitely sounds like what you are a looking for...&lt;/P&gt;

&lt;P&gt;What is the reason you want to use the "plain" search bar rather than a form search? If it is because of the way that the simple form search displays its results, then you can get around this. The simple form search results page also does not meet my requirements, and I prefer the flashtimeline view, so I built an advanced form search which redirects to the flashtimeline view, with the "plain" search bar at the top now filled out with the actual search syntax (passed from the form search).&lt;/P&gt;

&lt;P&gt;If this sounds like what you are after, let me know and I'll explain further how to do it.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2010 20:30:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-parameterized-transaction-search/m-p/10197#M402</guid>
      <dc:creator>Glenn</dc:creator>
      <dc:date>2010-03-15T20:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a parameterized transaction search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-parameterized-transaction-search/m-p/10198#M403</link>
      <description>&lt;P&gt;You can use transactiontypes, but I suggest you use saved searches. You don't &lt;EM&gt;have&lt;/EM&gt; to use them with form searches, but you can easily convert this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=blah sessionid=$sessid$ | transaction startswith="blah" endswith="yadda" fields=sessionid
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And invoke it with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| savedsearch "Name you saved it under" sessid="id123456" 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Mar 2010 08:46:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-parameterized-transaction-search/m-p/10198#M403</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-03-16T08:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a parameterized transaction search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-parameterized-transaction-search/m-p/10199#M404</link>
      <description>&lt;P&gt;as usual, great answer!  out of curiosity, why are transaction types not recommended in this scenario?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2010 01:02:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-parameterized-transaction-search/m-p/10199#M404</guid>
      <dc:creator>Justin_Grant</dc:creator>
      <dc:date>2010-03-17T01:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a parameterized transaction search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-parameterized-transaction-search/m-p/10200#M405</link>
      <description>&lt;P&gt;Hi Glenn, mostly I'm trying to avoid the complexity of having a separate view just for this. Want to keep things simple. But I like your idea of redirection. Want to post this as an example on Splunkbase.com?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2010 01:08:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-parameterized-transaction-search/m-p/10200#M405</guid>
      <dc:creator>Justin_Grant</dc:creator>
      <dc:date>2010-03-17T01:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a parameterized transaction search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-parameterized-transaction-search/m-p/10201#M406</link>
      <description>&lt;P&gt;Seems redudundant to me, and there's such a thing as over-abstraction. If you're not using the same transaction type in lots of different places, there isn't any point. You've already got the transaction defined in the saved search. Why make it harder to edit?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2010 01:09:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-parameterized-transaction-search/m-p/10201#M406</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-03-17T01:09:12Z</dc:date>
    </item>
  </channel>
</rss>

