<?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: Search String but retain values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-String-but-retain-values/m-p/21210#M3459</link>
    <description>&lt;P&gt;Try the &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/transaction"&gt;transaction&lt;/A&gt; search command to stitch events together based on the common field :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | transaction task_id
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Not sure about the field renaming without seeing more concise examples of the events.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Apr 2012 23:12:16 GMT</pubDate>
    <dc:creator>Damien_Dallimor</dc:creator>
    <dc:date>2012-04-06T23:12:16Z</dc:date>
    <item>
      <title>Search String but retain values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-String-but-retain-values/m-p/21209#M3458</link>
      <description>&lt;P&gt;new to splunk so go easy on me&lt;/P&gt;

&lt;P&gt;I can currently run two different searches and get the the results I'm looking for but the problem is that its two different searches &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;The only field which they have in common is &lt;CODE&gt;task_id&lt;/CODE&gt; how can I run both of these searches together still get the lines with the strings I'm interested in? Also within each search I'm renaming some of my fields ie &lt;CODE&gt;... | rename tt AS "Encode Time"&lt;/CODE&gt; and my other search is &lt;CODE&gt;... | rename tt AS "Copy Time"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2012 21:49:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-String-but-retain-values/m-p/21209#M3458</guid>
      <dc:creator>tb5821</dc:creator>
      <dc:date>2012-04-06T21:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Search String but retain values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-String-but-retain-values/m-p/21210#M3459</link>
      <description>&lt;P&gt;Try the &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/transaction"&gt;transaction&lt;/A&gt; search command to stitch events together based on the common field :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | transaction task_id
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Not sure about the field renaming without seeing more concise examples of the events.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2012 23:12:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-String-but-retain-values/m-p/21210#M3459</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2012-04-06T23:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Search String but retain values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-String-but-retain-values/m-p/21211#M3460</link>
      <description>&lt;P&gt;Unfortuantly I don't think its that easy I've tried all sorts of things join, set, append but just either not doing it in the right order or not doing it right at all. Here's an example of the two queries.&lt;/P&gt;

&lt;P&gt;index=myindex sourcetype=app host=1* OR host=050 "SUCCESS : 100% : Encode completed" | rename Task_time as "Encode Time" &lt;/P&gt;

&lt;P&gt;search  index=myindex sourcetype=app host=1* OR host=050 "SUCCESS : 100% : Push Completed" | rename Task_time as "Transfer Time"&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2012 23:24:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-String-but-retain-values/m-p/21211#M3460</guid>
      <dc:creator>tb582</dc:creator>
      <dc:date>2012-04-06T23:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Search String but retain values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-String-but-retain-values/m-p/21212#M3461</link>
      <description>&lt;P&gt;You can setup Splunk "event types" for your different tasks.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Abouteventtypes"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Abouteventtypes&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2012 23:55:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-String-but-retain-values/m-p/21212#M3461</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2012-04-06T23:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Search String but retain values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-String-but-retain-values/m-p/21213#M3462</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(sourcetype=A "encode") OR (sourcetype=B copying) | eval encode_time=if(searchmatch("encode"),tt,null()) | eval copy_time=if(searchmatch("copying"),tt,null())
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also, depending what you're doing the &lt;CODE&gt;... | stats ... by task_id&lt;/CODE&gt; command may be better than &lt;CODE&gt;transaction task_id&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Apr 2012 21:17:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-String-but-retain-values/m-p/21213#M3462</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2012-04-07T21:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Search String but retain values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-String-but-retain-values/m-p/21214#M3463</link>
      <description>&lt;P&gt;does it matter that my source types are both the same?&lt;/P&gt;</description>
      <pubDate>Sat, 07 Apr 2012 23:00:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-String-but-retain-values/m-p/21214#M3463</guid>
      <dc:creator>tb582</dc:creator>
      <dc:date>2012-04-07T23:00:58Z</dc:date>
    </item>
  </channel>
</rss>

