<?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: Splunk dashboard filter by user input with multiple value from user command field in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-filter-by-user-input-with-multiple-value-from/m-p/693721#M56802</link>
    <description>&lt;P&gt;What is with the asterisks? Remove them and try again&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2024 10:57:12 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-07-18T10:57:12Z</dc:date>
    <item>
      <title>Splunk dashboard filter by user input with multiple value from user command field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-filter-by-user-input-with-multiple-value-from/m-p/693690#M56794</link>
      <description>&lt;P&gt;Hello there, im creating a #Splunk Dashboards&amp;nbsp;table that utilized to monitor user command. And i want to make it flexible and dynamic to view the table by user inpu&lt;BR /&gt;For now i already create this search string as table that can apply filter by Find Command and Exclude Command, but it only accept single string as filter.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=os_linux sourcetype="bash_history"
| dedup timestamp
| fields _time process, dest, user_name
| search user_name=$user_name$ dest=$host_name$ process="$user_command$" NOT process="$exclude_command$"
| table _time user_name process dest
| rename dest as hostname, process as user_command
| sort -_time&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is possible to make the exclude_command accept multiple values with some separator? or another option recomended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 08:54:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-filter-by-user-input-with-multiple-value-from/m-p/693690#M56794</guid>
      <dc:creator>elend</dc:creator>
      <dc:date>2024-07-18T08:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard filter by user input with multiple value from user command field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-filter-by-user-input-with-multiple-value-from/m-p/693695#M56796</link>
      <description>&lt;P&gt;Depending on how you have set up your exclude_command token (which you haven't shared with us yet), you could try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| search user_name=$user_name$ dest=$host_name$ process="$user_command$" NOT process IN $exclude_command$&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 18 Jul 2024 09:05:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-filter-by-user-input-with-multiple-value-from/m-p/693695#M56796</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-07-18T09:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard filter by user input with multiple value from user command field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-filter-by-user-input-with-multiple-value-from/m-p/693699#M56798</link>
      <description>&lt;P&gt;*&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 09:32:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-filter-by-user-input-with-multiple-value-from/m-p/693699#M56798</guid>
      <dc:creator>elend</dc:creator>
      <dc:date>2024-07-18T09:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard filter by user input with multiple value from user command field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-filter-by-user-input-with-multiple-value-from/m-p/693701#M56799</link>
      <description>&lt;P&gt;sorry for lack of information&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;. Here's the full information for the dashboard:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Logging Command History by User&amp;lt;/title&amp;gt;
      &amp;lt;input type="text" token="drilldown_command" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;Find Command&amp;lt;/label&amp;gt;
        &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;input type="text" token="exclude_command" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;Exclude Command&amp;lt;/label&amp;gt;
        &amp;lt;default&amp;gt;NULL&amp;lt;/default&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=unix_os sourcetype="bash_history"
| dedup timestamp 
| fields _time process, dest, user_name
| search user_name=$user_name$ dest=$host_name$ process="$user_command$" NOT process="$exclude_command$"
| table _time user_name process dest
| rename dest as hostname, process as user_command
| sort -_time&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$time_global.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$time_global.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;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;none&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;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;false&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 09:22:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-filter-by-user-input-with-multiple-value-from/m-p/693701#M56799</guid>
      <dc:creator>elend</dc:creator>
      <dc:date>2024-07-18T09:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard filter by user input with multiple value from user command field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-filter-by-user-input-with-multiple-value-from/m-p/693710#M56800</link>
      <description>&lt;LI-CODE lang="markup"&gt;| search user_name=$user_name$ dest=$host_name$ process="$user_command$" NOT process IN ($exclude_command$)&lt;/LI-CODE&gt;&lt;P&gt;Note that your user will have to enter the terms as quoted strings delimited by commas e.g. "commandA","commandB"&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 10:01:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-filter-by-user-input-with-multiple-value-from/m-p/693710#M56800</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-07-18T10:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard filter by user input with multiple value from user command field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-filter-by-user-input-with-multiple-value-from/m-p/693718#M56801</link>
      <description>&lt;P&gt;With that option, exclude input was ignored.&lt;BR /&gt;But if with this one changes it can apply exclude input only one value.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| search user_name=$user_name$ dest=$host_name$ process="$user_command$" NOT process IN (*$exclude_command$*)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;If search&amp;nbsp;&lt;SPAN&gt;terms as quoted strings delimited by commas e.g. "commandA","commandB" it give no result:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="quoted-exclude.jpeg" style="width: 934px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31816i95CA4B81243F90D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="quoted-exclude.jpeg" alt="quoted-exclude.jpeg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="single-exclude.jpeg" style="width: 939px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31817i78AAF76B0B479CDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="single-exclude.jpeg" alt="single-exclude.jpeg" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 10:31:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-filter-by-user-input-with-multiple-value-from/m-p/693718#M56801</guid>
      <dc:creator>elend</dc:creator>
      <dc:date>2024-07-18T10:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard filter by user input with multiple value from user command field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-filter-by-user-input-with-multiple-value-from/m-p/693721#M56802</link>
      <description>&lt;P&gt;What is with the asterisks? Remove them and try again&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 10:57:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-filter-by-user-input-with-multiple-value-from/m-p/693721#M56802</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-07-18T10:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard filter by user input with multiple value from user command field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-filter-by-user-input-with-multiple-value-from/m-p/693725#M56803</link>
      <description>&lt;P&gt;if I remove the asterix, Exclude Command input ignore any input even single input will ignored so it only show table from find command.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 11:05:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-filter-by-user-input-with-multiple-value-from/m-p/693725#M56803</guid>
      <dc:creator>elend</dc:creator>
      <dc:date>2024-07-18T11:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard filter by user input with multiple value from user command field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-filter-by-user-input-with-multiple-value-from/m-p/693729#M56804</link>
      <description>&lt;P&gt;Can you open the search (from the dashboard table) in a separate table and share the search being used?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 11:36:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-filter-by-user-input-with-multiple-value-from/m-p/693729#M56804</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-07-18T11:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard filter by user input with multiple value from user command field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-filter-by-user-input-with-multiple-value-from/m-p/693814#M56806</link>
      <description>&lt;P&gt;Here's the output from your provided search query, it ignoring the exclude input.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="output.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31830i2CFF5E6F4CAE026C/image-size/large?v=v2&amp;amp;px=999" role="button" title="output.jpeg" alt="output.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 02:58:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-filter-by-user-input-with-multiple-value-from/m-p/693814#M56806</guid>
      <dc:creator>elend</dc:creator>
      <dc:date>2024-07-19T02:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard filter by user input with multiple value from user command field</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-filter-by-user-input-with-multiple-value-from/m-p/693824#M56807</link>
      <description>&lt;P&gt;You need to split process up if you want to treat the parts of the command line up as separate things. Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval parts=split(process," ")
| search user_name=$user_name$ dest=$host_name$ process="$user_command$" NOT parts IN ($exclude_command$)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 19 Jul 2024 06:35:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-dashboard-filter-by-user-input-with-multiple-value-from/m-p/693824#M56807</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-07-19T06:35:10Z</dc:date>
    </item>
  </channel>
</rss>

