<?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: Drop down in Search Result in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drop-down-in-Search-Result/m-p/542744#M37197</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; Thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;In index=graphsecurityalert I am getting the logs for alerts.&lt;/P&gt;&lt;P&gt;In my dashboard I want a dropdown for the alert's status like "New Alert" "In Progress" "Resolved" "Dismissed".&lt;/P&gt;&lt;P&gt;I need to change the status of the alert upon investigation. Could u please help here.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alexspunkshell_0-1615135777035.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13209i40922C9620C7058A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alexspunkshell_0-1615135777035.png" alt="alexspunkshell_0-1615135777035.png" /&gt;&lt;/span&gt;&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="alexspunkshell_1-1615136068029.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13210i4C571205FE61D713/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alexspunkshell_1-1615136068029.png" alt="alexspunkshell_1-1615136068029.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 07 Mar 2021 16:59:32 GMT</pubDate>
    <dc:creator>alexspunkshell</dc:creator>
    <dc:date>2021-03-07T16:59:32Z</dc:date>
    <item>
      <title>Drop down in Search Result</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drop-down-in-Search-Result/m-p/542717#M37194</link>
      <description>&lt;P&gt;I want to have drop down in my Dashboard's search result like "New Alert" "In-Progress" "Resolved" in Status field. Please help here.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alexspunkshell_0-1615090424162.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13206iFD4F48281F13B392/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alexspunkshell_0-1615090424162.png" alt="alexspunkshell_0-1615090424162.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 04:19:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Drop-down-in-Search-Result/m-p/542717#M37194</guid>
      <dc:creator>alexspunkshell</dc:creator>
      <dc:date>2021-03-07T04:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down in Search Result</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drop-down-in-Search-Result/m-p/542724#M37195</link>
      <description>&lt;P&gt;No idea what you are asking for here - there is no Status field in your image and the values you mentioned don't appear either. Where would a dropdown fit into this scenario? What would be the purpose of the dropdown? What have you tried so far?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 07:43:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Drop-down-in-Search-Result/m-p/542724#M37195</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-07T07:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down in Search Result</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drop-down-in-Search-Result/m-p/542727#M37196</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/126376"&gt;@alexspunkshell&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;it's not possible to add a status field to your events to trace the life of the alert, but you could save the results of an alert in a lookup and manually change the status of one of your results using the Lookup Editor.&lt;/P&gt;&lt;P&gt;It's also possible to modify the lookup using a JS or a Splunk Search but it isn't so easy and difficoult to describe in an answer.&lt;/P&gt;&lt;P&gt;this is a dashboard the I used to create a simple Case Manager that you could use as example to manage your Cases:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Manage New Cases&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table id="master"&amp;gt;
        &amp;lt;title&amp;gt;Total New Cases = $server_count$&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;
            | inputlookup my_cases WHERE Status="Open"
            | eval Time=strftime(TimeStamp,"%d/%m/%Y %H:%M:%S"), key=_key 
            | table key Time Alert_Name Description Status Notes User_Name TimeStamp
          &amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
          &amp;lt;progress&amp;gt;
            &amp;lt;set token="server_count"&amp;gt;$job.resultCount$&amp;lt;/set&amp;gt;
          &amp;lt;/progress&amp;gt;
          &amp;lt;cancelled&amp;gt;
            &amp;lt;unset token="server_count"&amp;gt;&amp;lt;/unset&amp;gt;
          &amp;lt;/cancelled&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;fields&amp;gt;_key, Time, Alert_Name, Description, Status, Notes, User_Name&amp;lt;/fields&amp;gt;
        &amp;lt;option name="count"&amp;gt;10&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;row&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&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="key"&amp;gt;$row.key$&amp;lt;/set&amp;gt;
          &amp;lt;set token="timestamp"&amp;gt;$row.TimeStamp$&amp;lt;/set&amp;gt;
          &amp;lt;set token="alertname"&amp;gt;$row.Alert_Name$&amp;lt;/set&amp;gt;
          &amp;lt;set token="description"&amp;gt;$row.Description$&amp;lt;/set&amp;gt;
          &amp;lt;set token="status"&amp;gt;$row.Status$&amp;lt;/set&amp;gt;
          &amp;lt;set token="notes"&amp;gt;$row.Notes$&amp;lt;/set&amp;gt;
          &amp;lt;set token="username"&amp;gt;$row.User$&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;Modify Row&amp;lt;/title&amp;gt;
      &amp;lt;input type="dropdown" token="status_to_update"&amp;gt;
        &amp;lt;label&amp;gt;Status&amp;lt;/label&amp;gt;
        &amp;lt;default&amp;gt;$status$&amp;lt;/default&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query/&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;choice value="Open"&amp;gt;Open&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="Closed"&amp;gt;Closed&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="Work-in-progress"&amp;gt;Work-in-progress&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="Escalation"&amp;gt;Escalation&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="Stand-By"&amp;gt;Stand-By&amp;lt;/choice&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;input type="text" token="notes_to_update"&amp;gt;
        &amp;lt;label&amp;gt;Add Notes&amp;lt;/label&amp;gt;
        &amp;lt;default&amp;gt;$notes$&amp;lt;/default&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;table id="detail" depends="$key$"&amp;gt;
        &amp;lt;title&amp;gt;Row to modify&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;
            | makeresults 1
            | eval key="$key$", TimeStamp="$timestamp$", Alert_Name="$alertname$", Description="$description$", Status="Work-in-progress", Notes="$notes_to_update$", Time=strftime($timestamp$,"%d/%m/%Y %H:%M:%S")
            | appendcols [ | rest /services/authentication/current-context | rename username AS User_Name | fields User_Name]
            | table key Time TimeStamp Alert_Name Description Status Notes User_Name
          &amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;fields&amp;gt;_key, Time, Alert_Name, Description, Status, Notes, User_Name&amp;lt;/fields&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;row&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&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="status_updated"&amp;gt;$row.Status$&amp;lt;/set&amp;gt;
          &amp;lt;set token="notes_updated"&amp;gt;$row.Notes$&amp;lt;/set&amp;gt;
          &amp;lt;set token="username_updated"&amp;gt;$row.User_Name$&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;table id="detail2" depends="$status_to_update$"&amp;gt;
        &amp;lt;title&amp;gt;Modified Lookup row&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;
            | inputlookup my_cases
            | eval 
              Status=if(_key="$key$","$status_updated$",Status),
              Notes=if(_key="$key$","$notes_updated$",Notes),
              User_Name=if(_key="$key$","$username_updated$",User_Name)
            | search _key="$key$"
            | outputlookup my_cases append=true
            | eval key=_key
            | collect addtime=true index=summary_alerts
            | eval Time=strftime(TimeStamp,"%d/%m/%Y %H:%M:%S"), key=_key
            | table key Time TimeStamp Alert_Name Description Status Notes User_Name
            &amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;fields&amp;gt;_key, Time, Alert_Name, Description, Status, Notes, User_Name&amp;lt;/fields&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;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&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;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in few words:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I list all the cases to assign,&lt;/LI&gt;&lt;LI&gt;I choose the one to take in charge clicking on a record,&lt;/LI&gt;&lt;LI&gt;I give the values the the fields (account name, staus and notes,&lt;/LI&gt;&lt;LI&gt;I save the given values in the row of the lookup (KV Store).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;As I said it isn't so easy!&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 09:28:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Drop-down-in-Search-Result/m-p/542727#M37196</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-03-07T09:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down in Search Result</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drop-down-in-Search-Result/m-p/542744#M37197</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; Thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;In index=graphsecurityalert I am getting the logs for alerts.&lt;/P&gt;&lt;P&gt;In my dashboard I want a dropdown for the alert's status like "New Alert" "In Progress" "Resolved" "Dismissed".&lt;/P&gt;&lt;P&gt;I need to change the status of the alert upon investigation. Could u please help here.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alexspunkshell_0-1615135777035.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13209i40922C9620C7058A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alexspunkshell_0-1615135777035.png" alt="alexspunkshell_0-1615135777035.png" /&gt;&lt;/span&gt;&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="alexspunkshell_1-1615136068029.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13210i4C571205FE61D713/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alexspunkshell_1-1615136068029.png" alt="alexspunkshell_1-1615136068029.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 16:59:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Drop-down-in-Search-Result/m-p/542744#M37197</guid>
      <dc:creator>alexspunkshell</dc:creator>
      <dc:date>2021-03-07T16:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down in Search Result</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drop-down-in-Search-Result/m-p/542786#M37201</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/126376"&gt;@alexspunkshell&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;to have the dropdown in each row you have to use JavaScripts.&lt;/P&gt;&lt;P&gt;I cannot help you!&lt;/P&gt;&lt;P&gt;but see my dashboard.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 07:25:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Drop-down-in-Search-Result/m-p/542786#M37201</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-03-08T07:25:22Z</dc:date>
    </item>
  </channel>
</rss>

