<?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: IF/CASE for multiple variables in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/IF-CASE-for-multiple-variables/m-p/529942#M35977</link>
    <description>&lt;P&gt;Nevermind - I have it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for your help!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Nov 2020 15:34:29 GMT</pubDate>
    <dc:creator>klaudiac</dc:creator>
    <dc:date>2020-11-18T15:34:29Z</dc:date>
    <item>
      <title>IF/CASE for multiple variables</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/IF-CASE-for-multiple-variables/m-p/529921#M35974</link>
      <description>&lt;P&gt;Hi guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking for a bit of help because I confused myself at this point and can't think logically &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm creating a search where I can show uploads vs downloads, and the criteria is as follow:&lt;BR /&gt;&lt;BR /&gt;*if bytes_in (download) is more than 70% of all the bytes for that user, then the main action is data download and I want to add a column "alert" with a value "download"&lt;BR /&gt;&lt;BR /&gt;*if bytes_out (upload) is more than 70% of all the bytes for that user, then the main action is data upload and I want to add to the column "alert" that it's going to be an "upload"&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;*if the bytes in and our are within 20% of the even split, then the value in the "alert" column will be no action.&lt;BR /&gt;if the split is even, then "no action".&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now, how do I do it in Splunk??&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 14:34:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/IF-CASE-for-multiple-variables/m-p/529921#M35974</guid>
      <dc:creator>klaudiac</dc:creator>
      <dc:date>2020-11-18T14:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: IF/CASE for multiple variables</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/IF-CASE-for-multiple-variables/m-p/529932#M35975</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=indexName
| eval user_bytes_perc_download = (bytes_in/all_bytes_user)*100
| eval user_bytes_perc_upload = (bytes_out/all_bytes_user)*100
| eval alert=case(user_bytes_perc_download &amp;gt; 70,"download", user_bytes_perc_upload &amp;gt; 70,"upload", user_bytes_perc_download &amp;lt;20 AND user_bytes_perc_upload &amp;lt; 20, "no action")&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;if the bytes in and our are within 20% of the even split -&amp;nbsp; I got confused with this, so the query is as per my understanding.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 15:12:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/IF-CASE-for-multiple-variables/m-p/529932#M35975</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2020-11-18T15:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: IF/CASE for multiple variables</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/IF-CASE-for-multiple-variables/m-p/529938#M35976</link>
      <description>&lt;P&gt;Thanks so much, almost there &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;I should have specified better - the equal split would be 50-50% between in and out.&amp;nbsp; So anything that's within the 30% (not 20 - sorry, I'm losing it today) margin would be "no action" e.g. 60% are uploads and&amp;nbsp; 40% are downloads = "no action"&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 15:26:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/IF-CASE-for-multiple-variables/m-p/529938#M35976</guid>
      <dc:creator>klaudiac</dc:creator>
      <dc:date>2020-11-18T15:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: IF/CASE for multiple variables</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/IF-CASE-for-multiple-variables/m-p/529942#M35977</link>
      <description>&lt;P&gt;Nevermind - I have it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for your help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 15:34:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/IF-CASE-for-multiple-variables/m-p/529942#M35977</guid>
      <dc:creator>klaudiac</dc:creator>
      <dc:date>2020-11-18T15:34:29Z</dc:date>
    </item>
  </channel>
</rss>

