<?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 chart count over in splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/chart-count-over-in-splunk/m-p/342321#M101413</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;| rest /services/authentication/users splunk_server=local | search [| rest /services/authentication/current-context | rename username as title | fields title] |fields realname |map[|inputlookup mpc.csv |chart count over "Sub Division 4" by "Enrollment Status" | eval Enrolled=if(isnotnull(Enrolled),Enrolled,0) | eval In-Progress=if(isnotnull('In-Progress'),'In-Progress',0) |eval Completed=if(isnotnull(Completed),Completed,0)| eval total='Completed'+'Enrolled'+'In-Progress' |eval %Completed=round(('Completed'/('total'))*100,2) |eval %Enrolled=round((Enrolled/('total'))*100,2)|eval "%In-Progress"=round(('In-Progress'/('total'))*100,2) |rename total as "Total Employee Count" "Sub Division 4" as "Business Area"| fields "Business Area" "Supervisor Name" "Total Employee Count" %Enrolled "%In-Progress" %Completed]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Currently am using above query which is showing me all the enrollment status values by business area but in addition to that i want to search the realname in the mpc.csv file in the column "supervisor Name" and display it.&lt;BR /&gt;
how to do that ?&lt;/P&gt;</description>
    <pubDate>Thu, 08 Mar 2018 18:14:23 GMT</pubDate>
    <dc:creator>surekhasplunk</dc:creator>
    <dc:date>2018-03-08T18:14:23Z</dc:date>
    <item>
      <title>chart count over in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/chart-count-over-in-splunk/m-p/342321#M101413</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| rest /services/authentication/users splunk_server=local | search [| rest /services/authentication/current-context | rename username as title | fields title] |fields realname |map[|inputlookup mpc.csv |chart count over "Sub Division 4" by "Enrollment Status" | eval Enrolled=if(isnotnull(Enrolled),Enrolled,0) | eval In-Progress=if(isnotnull('In-Progress'),'In-Progress',0) |eval Completed=if(isnotnull(Completed),Completed,0)| eval total='Completed'+'Enrolled'+'In-Progress' |eval %Completed=round(('Completed'/('total'))*100,2) |eval %Enrolled=round((Enrolled/('total'))*100,2)|eval "%In-Progress"=round(('In-Progress'/('total'))*100,2) |rename total as "Total Employee Count" "Sub Division 4" as "Business Area"| fields "Business Area" "Supervisor Name" "Total Employee Count" %Enrolled "%In-Progress" %Completed]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Currently am using above query which is showing me all the enrollment status values by business area but in addition to that i want to search the realname in the mpc.csv file in the column "supervisor Name" and display it.&lt;BR /&gt;
how to do that ?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 18:14:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/chart-count-over-in-splunk/m-p/342321#M101413</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2018-03-08T18:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: chart count over in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/chart-count-over-in-splunk/m-p/342322#M101414</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|inputlookup mpc.csv 
| where 'Supervisor Name'=[| rest /services/authentication/current-context splunk_server=local | table realname | rename realname as search | format] | eval "Sub Division 4"='Sub Division 4'."##".'Supervisor Name'
|chart count over "Sub Division 4" by "Enrollment Status" 
| eval Enrolled=if(isnotnull(Enrolled),Enrolled,0) | eval In-Progress=if(isnotnull('In-Progress'),'In-Progress',0) |eval Completed=if(isnotnull(Completed),Completed,0)
| eval total='Completed'+'Enrolled'+'In-Progress' |eval %Completed=round(('Completed'/('total'))*100,2) 
|eval %Enrolled=round((Enrolled/('total'))*100,2)|eval "%In-Progress"=round(('In-Progress'/('total'))*100,2) 
| rex field="Sub Division 4" "(?&amp;lt;SubDiv&amp;gt;[^#]+)##(?&amp;lt;Supervisor&amp;gt;.+)"
|rename total as "Total Employee Count" "SubDiv" as "Business Area" Supervisor as "Supervisor Name"| fields "Business Area" "Supervisor Name" "Total Employee Count" %Enrolled "%In-Progress" %Completed
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Mar 2018 18:53:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/chart-count-over-in-splunk/m-p/342322#M101414</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-03-08T18:53:17Z</dc:date>
    </item>
  </channel>
</rss>

