<?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 Static Options not equal to 0 in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Static-Options-not-equal-to-0/m-p/686694#M56210</link>
    <description>&lt;P&gt;I believe I have what is a very simple question, but with all my searching I have been unable to find an answer.&lt;/P&gt;&lt;P&gt;I've made a simple dashboard to show successful and failed logins to our application.&amp;nbsp; I have created a dropdown/radio button panel with some static options shown below.&amp;nbsp; I can show all results with an asterisk and only successful logins with 0, but using "!=0" to get everything that doesn't equal 0 doesn't produce any results.&lt;/P&gt;&lt;P&gt;I have tried some basic combinations of !=0, !="0", !=="0" here in the Static Options window.&lt;/P&gt;&lt;P&gt;What am I missing?&amp;nbsp; The tutorials I've found don't specifically cover this type of syntax.&amp;nbsp; Thank you in advance!&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="2024-05-07 08_39_06-Edit_ MS Authenticator - Classic _ Splunk 9.0.4.1.png" style="width: 372px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30716i82E773399932C4DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-05-07 08_39_06-Edit_ MS Authenticator - Classic _ Splunk 9.0.4.1.png" alt="2024-05-07 08_39_06-Edit_ MS Authenticator - Classic _ Splunk 9.0.4.1.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;2024-05-07 08_39_06-Edit_ MS Authenticator - Classic _ Splunk 9.0.4.1.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-05-07 08_41_30-Edit Source_ MS Authenticator - Classic _ Splunk 9.0.4.1.png" style="width: 516px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30717i0BCD80319DCA24EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-05-07 08_41_30-Edit Source_ MS Authenticator - Classic _ Splunk 9.0.4.1.png" alt="2024-05-07 08_41_30-Edit Source_ MS Authenticator - Classic _ Splunk 9.0.4.1.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;2024-05-07 08_41_30-Edit Source_ MS Authenticator - Classic _ Splunk 9.0.4.1.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2024 12:45:44 GMT</pubDate>
    <dc:creator>HugheJass</dc:creator>
    <dc:date>2024-05-07T12:45:44Z</dc:date>
    <item>
      <title>Static Options not equal to 0</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Static-Options-not-equal-to-0/m-p/686694#M56210</link>
      <description>&lt;P&gt;I believe I have what is a very simple question, but with all my searching I have been unable to find an answer.&lt;/P&gt;&lt;P&gt;I've made a simple dashboard to show successful and failed logins to our application.&amp;nbsp; I have created a dropdown/radio button panel with some static options shown below.&amp;nbsp; I can show all results with an asterisk and only successful logins with 0, but using "!=0" to get everything that doesn't equal 0 doesn't produce any results.&lt;/P&gt;&lt;P&gt;I have tried some basic combinations of !=0, !="0", !=="0" here in the Static Options window.&lt;/P&gt;&lt;P&gt;What am I missing?&amp;nbsp; The tutorials I've found don't specifically cover this type of syntax.&amp;nbsp; Thank you in advance!&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="2024-05-07 08_39_06-Edit_ MS Authenticator - Classic _ Splunk 9.0.4.1.png" style="width: 372px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30716i82E773399932C4DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-05-07 08_39_06-Edit_ MS Authenticator - Classic _ Splunk 9.0.4.1.png" alt="2024-05-07 08_39_06-Edit_ MS Authenticator - Classic _ Splunk 9.0.4.1.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;2024-05-07 08_39_06-Edit_ MS Authenticator - Classic _ Splunk 9.0.4.1.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-05-07 08_41_30-Edit Source_ MS Authenticator - Classic _ Splunk 9.0.4.1.png" style="width: 516px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30717i0BCD80319DCA24EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-05-07 08_41_30-Edit Source_ MS Authenticator - Classic _ Splunk 9.0.4.1.png" alt="2024-05-07 08_41_30-Edit Source_ MS Authenticator - Classic _ Splunk 9.0.4.1.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;2024-05-07 08_41_30-Edit Source_ MS Authenticator - Classic _ Splunk 9.0.4.1.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 12:45:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Static-Options-not-equal-to-0/m-p/686694#M56210</guid>
      <dc:creator>HugheJass</dc:creator>
      <dc:date>2024-05-07T12:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Static Options not equal to 0</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Static-Options-not-equal-to-0/m-p/686704#M56212</link>
      <description>&lt;P&gt;1. If possible, avoid using screenshots. Paste your code into preformatted paragraph or a code block - it's much easier to read/respond this way.&lt;/P&gt;&lt;P&gt;2. Unless I'm blind you don't show how you're using this token.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 13:01:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Static-Options-not-equal-to-0/m-p/686704#M56212</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-05-07T13:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Static Options not equal to 0</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Static-Options-not-equal-to-0/m-p/686709#M56214</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/267656"&gt;@HugheJass&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;try adding the field to use in the condition, e.g.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;All              my_field=*
Successful       my_field=0
Failed           my_field!=0&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 13:10:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Static-Options-not-equal-to-0/m-p/686709#M56214</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-05-07T13:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Static Options not equal to 0</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Static-Options-not-equal-to-0/m-p/686711#M56215</link>
      <description>&lt;P&gt;Thank you for the tip to add the field into my condition, but this produces no results.&amp;nbsp; Leaving in * and 0 show those results, but even putting "my_field=0" shows none.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 13:17:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Static-Options-not-equal-to-0/m-p/686711#M56215</guid>
      <dc:creator>HugheJass</dc:creator>
      <dc:date>2024-05-07T13:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Static Options not equal to 0</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Static-Options-not-equal-to-0/m-p/686714#M56216</link>
      <description>&lt;P&gt;Thank you for your formatting advice.&amp;nbsp; This is my first detailed post as I dive into Splunk dashboards, so I will keep that in mind moving forward.&lt;/P&gt;&lt;P&gt;The token works fine in general with a wildcard or 0, so I didn't add more detail on how it's used because I didn't think that part needs troubleshooting.&amp;nbsp; The data is there in my results.&amp;nbsp; I figured there is a simple syntax issue that's stopping me from filtering it properly.&amp;nbsp; I'm pulling login events from Azure AD.&amp;nbsp; The field I'm working with here is status.errorCode.&amp;nbsp; I'm using two tokens - UserID and errorCode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="mscloud" userPrincipalName="$UserID$" status.errorCode="$errorCode$"  | spath userPrincipalName | search userPrincipalName="*@company.com"  | spath status.errorCode | search status.errorCode="*"| sort _time + desc | table  _time createdDateTime userPrincipalName appDisplayName status.errorCode status.failureReason status.additionalDetails clientAppUsed conditionalAccessStatus&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 13:28:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Static-Options-not-equal-to-0/m-p/686714#M56216</guid>
      <dc:creator>HugheJass</dc:creator>
      <dc:date>2024-05-07T13:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Static Options not equal to 0</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Static-Options-not-equal-to-0/m-p/686718#M56217</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/267656"&gt;@HugheJass&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;what's the field you are using for the conditions *, 0 !=0? in the shared code there isn't any field.&lt;/P&gt;&lt;P&gt;my_field is a common name that means the field that you're using.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 13:44:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Static-Options-not-equal-to-0/m-p/686718#M56217</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-05-07T13:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Static Options not equal to 0</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Static-Options-not-equal-to-0/m-p/686726#M56218</link>
      <description>&lt;P&gt;I do understand that "my_field" was just a placeholder since you did not know the name of my tokens.&amp;nbsp; My actual field is status.errorCode and creating a token "errorCode" from that does pull my results into the dashboard.&amp;nbsp; The problem comes when I tried to filter my token "errorCode" to show anything that isn't a value of 0.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I posted my code in another reply here.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 14:04:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Static-Options-not-equal-to-0/m-p/686726#M56218</guid>
      <dc:creator>HugheJass</dc:creator>
      <dc:date>2024-05-07T14:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Static Options not equal to 0</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Static-Options-not-equal-to-0/m-p/686764#M56219</link>
      <description>&lt;P&gt;OK. So you can see that if you substitute the token with actual value, you're gonna get something that makes no sense&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="mscloud" userPrincipalName="some_username" status.errorCode=!=0&lt;/LI-CODE&gt;&lt;P&gt;Since token replacement is just a simple text substitution, you might need something like that:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="mscloud" userPrincipalName="$UserID$" status.errorCode$errorCode$&lt;/LI-CODE&gt;&lt;P&gt;(and define your choices as "=*", "=0", "!=0" respectively)&lt;/P&gt;&lt;P&gt;or do&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="mscloud" userPrincipalName="$UserID$" $errorCode$&lt;/LI-CODE&gt;&lt;P&gt;and define your choices as whole conditions ("status.errorCode=0" and so on)&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 15:15:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Static-Options-not-equal-to-0/m-p/686764#M56219</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-05-07T15:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Static Options not equal to 0</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Static-Options-not-equal-to-0/m-p/686766#M56220</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/267656"&gt;@HugheJass&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;use this field in the conditions&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;status.errorCode=*
status.errorCode=0
status.errorCode!=0&lt;/LI-CODE&gt;&lt;P&gt;or&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;'status.errorCode'=*
'status.errorCode'=0
'status.errorCode'!=0&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 15:18:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Static-Options-not-equal-to-0/m-p/686766#M56220</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-05-07T15:18:47Z</dc:date>
    </item>
  </channel>
</rss>

