<?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: To change the column value in query using eval or regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/To-change-the-column-value-in-query-using-eval-or-regex/m-p/532686#M150487</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;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Dec 2020 17:09:06 GMT</pubDate>
    <dc:creator>rj1408</dc:creator>
    <dc:date>2020-12-10T17:09:06Z</dc:date>
    <item>
      <title>To change the column value in query using eval or regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-change-the-column-value-in-query-using-eval-or-regex/m-p/532662#M150477</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rj1408_0-1607613172326.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12245iA6745125CE9C5CBA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rj1408_0-1607613172326.png" alt="rj1408_0-1607613172326.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So if I click at Success/Failure I'm able to get all the transaction IDs which have status Success/Failure, But if i chose Total_Transaction I'm unable to change it to "*" using eval.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Below is the query, Im using drilldown for column name and column value, since its taking column value as Total_Transaction its unable to trace to *. Need help with the eval if query.&lt;BR /&gt;&lt;BR /&gt;Query-&lt;BR /&gt;index="int_gcg_apac_pcf_application_dm_169688" cf_org_name="CM-AP-SIT2" cf_space_name="166190_GCESMS" ESMS_MainMethod=doLostStolen OR ESMS_MainMethod=saveReqest OR ESMS_MainMethod=updateTempCreditLimit |stats dc(ESMS_TransactionID), sum(ESMS_ResponseTime), count(ESMS_StatusSuccess), count(ESMS_StatusFailure) as count by ESMS_MainMethod | rename ESMS_MainMethod as MicroService dc(ESMS_TransactionID) as Total_Transaction sum(ESMS_ResponseTime) as Total_Time count(ESMS_StatusSuccess) as Sucess count as Failure | eval "Success%"=((Success/Total_Transaction)*100) , "Failure%"=((Failure/Total_Transaction)*100), "Avg"=(Total_Time/Total_Transaction) | replace loadCardProfile1 with ESMS_CardProfile processCriteria with ESMS_GBCR saveReqest with ESMS_DB_Service doLostStolen with ESMS_LostStolen_Service doRetailConversion with ESMS_RetailConversion updateTempCreditLimit with ESMS_TempCreditLimit_Service&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 15:16:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-change-the-column-value-in-query-using-eval-or-regex/m-p/532662#M150477</guid>
      <dc:creator>rj1408</dc:creator>
      <dc:date>2020-12-10T15:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: To change the column value in query using eval or regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-change-the-column-value-in-query-using-eval-or-regex/m-p/532668#M150480</link>
      <description>&lt;P&gt;What have you tried? Can you share the dashboard XML?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 16:00:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-change-the-column-value-in-query-using-eval-or-regex/m-p/532668#M150480</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-12-10T16:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: To change the column value in query using eval or regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-change-the-column-value-in-query-using-eval-or-regex/m-p/532684#M150486</link>
      <description>&lt;P&gt;Hi ITWhisperer,&lt;BR /&gt;&lt;BR /&gt;Have used this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rj1408_0-1607619524435.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12247i19AFAAAC7C7823DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rj1408_0-1607619524435.png" alt="rj1408_0-1607619524435.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So here Im using drilldown to get this table from the above table:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rj1408_1-1607619717461.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12248iB10FAF320A138E80/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rj1408_1-1607619717461.png" alt="rj1408_1-1607619717461.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;The problem is if&amp;nbsp; I click on the "Total_Transaction" I'm unable to change the value to "*", to show all the TransactionIDs.&lt;BR /&gt;&lt;BR /&gt;Also can u suggest me how to hide rows alternatively whenever any of the two rows StausFailure/StatusSucces is completyly empty&lt;BR /&gt;&lt;BR /&gt;My dashboard:&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;MicroServices&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;The Succes Error Percentage&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index="int_gcg_apac_pcf_application_dm_169688" cf_org_name="CM-AP-SIT2" cf_space_name="166190_GCESMS" ESMS_MainMethod=doLostStolen OR ESMS_MainMethod=saveReqest OR ESMS_MainMethod=updateTempCreditLimit |stats dc(ESMS_TransactionID), sum(ESMS_ResponseTime), count(ESMS_StatusSuccess), count(ESMS_StatusFailure) as count by ESMS_MainMethod | rename ESMS_MainMethod as MicroService  dc(ESMS_TransactionID) as Total_Transaction sum(ESMS_ResponseTime) as Total_Time count(ESMS_StatusSuccess) as Sucess count as Failure | eval "Success%"=((Success/Total_Transaction)*100) , "Failure%"=((Failure/Total_Transaction)*100), "Avg"=(Total_Time/Total_Transaction) | replace loadCardProfile1 with ESMS_CardProfile processCriteria with ESMS_GBCR saveReqest with ESMS_DB_Service doLostStolen with ESMS_LostStolen_Service  doRetailConversion with ESMS_RetailConversion updateTempCreditLimit with ESMS_TempCreditLimit_Service&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$timepicker.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$timepicker.latest$&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;100&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;set token="form.MS_filter"&amp;gt;$click.value$&amp;lt;/set&amp;gt;
          &amp;lt;set token="clicked_col"&amp;gt;$click.name2$&amp;lt;/set&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;TransactionIDs&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;$MS_filter$&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index="int_gcg_apac_pcf_application_dm_169688" cf_org_name="CM-AP-SIT2" cf_space_name="166190_GCESMS"  ESMS_MS=$form.MS_filter$  ESMS_MainMethod=doLostStolen OR ESMS_MainMethod= loadCardProfile1 OR ESMS_MainMethod=processCriteria OR ESMS_MainMethod=saveReqest OR ESMS_MainMethod=updateTempCreditLimit ESMS_StatusSuccess=$clicked_col$ OR ESMS_StatusFailure=$clicked_col$  | table   ESMS_TransactionID,ESMS_Country, ESMS_ResponseTime, ESMS_MS, ESMS_StatusFailure, ESMS_StatusSuccess&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$timepicker.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$timepicker.latest$&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;100&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;set token="form.TransactionID_filter"&amp;gt;$click.value$&amp;lt;/set&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 17:07:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-change-the-column-value-in-query-using-eval-or-regex/m-p/532684#M150486</guid>
      <dc:creator>rj1408</dc:creator>
      <dc:date>2020-12-10T17:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: To change the column value in query using eval or regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-change-the-column-value-in-query-using-eval-or-regex/m-p/532686#M150487</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;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 17:09:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-change-the-column-value-in-query-using-eval-or-regex/m-p/532686#M150487</guid>
      <dc:creator>rj1408</dc:creator>
      <dc:date>2020-12-10T17:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: To change the column value in query using eval or regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-change-the-column-value-in-query-using-eval-or-regex/m-p/532692#M150491</link>
      <description>&lt;LI-CODE lang="markup"&gt;        &amp;lt;drilldown&amp;gt;
          &amp;lt;set token="form.MS_filter"&amp;gt;$click.value$&amp;lt;/set&amp;gt;
          &amp;lt;eval token="clicked_col"&amp;gt;if($click.name2$=="Total_Transaction","*",$click.name2$)&amp;lt;/eval&amp;gt;
        &amp;lt;/drilldown&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 10 Dec 2020 18:03:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-change-the-column-value-in-query-using-eval-or-regex/m-p/532692#M150491</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-12-10T18:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: To change the column value in query using eval or regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-change-the-column-value-in-query-using-eval-or-regex/m-p/532708#M150496</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;Thankyou! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 18:50:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-change-the-column-value-in-query-using-eval-or-regex/m-p/532708#M150496</guid>
      <dc:creator>rj1408</dc:creator>
      <dc:date>2020-12-10T18:50:46Z</dc:date>
    </item>
  </channel>
</rss>

