<?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: Not producing result when Variable is being passed in search after eval in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Not-producing-result-when-Variable-is-being-passed-in-search/m-p/669237#M112211</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/206061"&gt;@scelikok&lt;/a&gt;&amp;nbsp;No luck. I have attached outcome screenshot for your reference&lt;BR /&gt;&lt;BR /&gt;| search job_name=*Group06* OR job_name=*Group01* - This produce 2 events, 1st one belong to Group06 2nd event belong to Group01&lt;BR /&gt;&lt;BR /&gt;|&amp;nbsp;search job_name=*Group06* OR job_name=rerunGroup - This produce only 1 event belong to Group06&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-20 at 1.07.04 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28183i7124A3AD05A24D53/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-11-20 at 1.07.04 PM.png" alt="Screenshot 2023-11-20 at 1.07.04 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-20 at 1.06.37 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28184iC7F26AD1EA620B33/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-11-20 at 1.06.37 PM.png" alt="Screenshot 2023-11-20 at 1.06.37 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;</description>
    <pubDate>Mon, 20 Nov 2023 18:10:24 GMT</pubDate>
    <dc:creator>Thulasiraman</dc:creator>
    <dc:date>2023-11-20T18:10:24Z</dc:date>
    <item>
      <title>Not producing result when Variable is being passed in search after eval</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-producing-result-when-Variable-is-being-passed-in-search/m-p/669141#M112187</link>
      <description>&lt;P&gt;Below query is producing the results&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="jenkins" sourcetype="json:jenkins" job_name="$env$_Group*" event_tag=job_event type=completed
| search job_name=*"Group06"* OR job_name=*"Group01"*
| head 2
| dedup build_number
| stats sum(test_summary.passes) as Pass
| fillnull value="Test Inprogress..." Pass&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;but not this query.&amp;nbsp;$group$ - dropdown selected option is Group06&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="jenkins" sourcetype="json:jenkins" job_name="$env$_Group*" event_tag=job_event type=completed
| eval rerunGroup = case("$group$"=="Group06", "Group01", "$group$"=="Group07", "Group02", "$group$"=="Group08", "Group03", "$group$"=="Group09", "Group04", "$group$"=="Group10", "Group05",1==1, "???")
|''' table rerunGroup  - This shows Group01 in the table '''
| search job_name=*$group$* OR job_name=*rerunGroup*
| head 2
| dedup build_number
| stats sum(test_summary.passes) as Pass
| fillnull value="Test Inprogress..." Pass&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;No big difference except Eval statement and passing the variable value.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can someone please help&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 16:57:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-producing-result-when-Variable-is-being-passed-in-search/m-p/669141#M112187</guid>
      <dc:creator>Thulasiraman</dc:creator>
      <dc:date>2023-11-20T16:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Not producing result when Variable is being passed in search after eval</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-producing-result-when-Variable-is-being-passed-in-search/m-p/669212#M112206</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Can you please help with my above question? Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 15:30:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-producing-result-when-Variable-is-being-passed-in-search/m-p/669212#M112206</guid>
      <dc:creator>Thulasiraman</dc:creator>
      <dc:date>2023-11-20T15:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Not producing result when Variable is being passed in search after eval</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-producing-result-when-Variable-is-being-passed-in-search/m-p/669226#M112210</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/261769"&gt;@Thulasiraman&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Can you please try below?&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="jenkins" sourcetype="json:jenkins" job_name="$env$_Group*" event_tag=job_event type=completed
| eval rerunGroup = case("$group$"=="Group06", "*Group01*", "$group$"=="Group07", "*Group02*", "$group$"=="Group08", "*Group03*", "$group$"=="Group09", "*Group04*", "$group$"=="Group10", "*Group05*",1==1, "???")
|''' table rerunGroup  - This shows Group01 in the table '''
| search job_name=*$group$* OR job_name=rerunGroup
| head 2
| dedup build_number
| stats sum(test_summary.passes) as Pass
| fillnull value="Test Inprogress..." Pass&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 20 Nov 2023 17:21:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-producing-result-when-Variable-is-being-passed-in-search/m-p/669226#M112210</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-11-20T17:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Not producing result when Variable is being passed in search after eval</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-producing-result-when-Variable-is-being-passed-in-search/m-p/669237#M112211</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/206061"&gt;@scelikok&lt;/a&gt;&amp;nbsp;No luck. I have attached outcome screenshot for your reference&lt;BR /&gt;&lt;BR /&gt;| search job_name=*Group06* OR job_name=*Group01* - This produce 2 events, 1st one belong to Group06 2nd event belong to Group01&lt;BR /&gt;&lt;BR /&gt;|&amp;nbsp;search job_name=*Group06* OR job_name=rerunGroup - This produce only 1 event belong to Group06&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-20 at 1.07.04 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28183i7124A3AD05A24D53/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-11-20 at 1.07.04 PM.png" alt="Screenshot 2023-11-20 at 1.07.04 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-20 at 1.06.37 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28184iC7F26AD1EA620B33/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-11-20 at 1.06.37 PM.png" alt="Screenshot 2023-11-20 at 1.06.37 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 18:10:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-producing-result-when-Variable-is-being-passed-in-search/m-p/669237#M112211</guid>
      <dc:creator>Thulasiraman</dc:creator>
      <dc:date>2023-11-20T18:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Not producing result when Variable is being passed in search after eval</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-producing-result-when-Variable-is-being-passed-in-search/m-p/669284#M112220</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/261769"&gt;@Thulasiraman&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;"search" command &amp;nbsp;is not using another field value. Please try with "where" command like below,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="jenkins" sourcetype="json:jenkins" job_name="$env$_Group*" event_tag=job_event type=completed
| eval rerunGroup = case("$group$"=="Group06", "*Group01*", "$group$"=="Group07", "*Group02*", "$group$"=="Group08", "*Group03*", "$group$"=="Group09", "*Group04*", "$group$"=="Group10", "*Group05*",1==1, "???")
|''' table rerunGroup  - This shows Group01 in the table '''
| where job_name="*$group$*" OR job_name=rerunGroup
| head 2
| dedup build_number
| stats sum(test_summary.passes) as Pass
| fillnull value="Test Inprogress..." Pass&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 21 Nov 2023 04:24:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-producing-result-when-Variable-is-being-passed-in-search/m-p/669284#M112220</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-11-21T04:24:14Z</dc:date>
    </item>
  </channel>
</rss>

