<?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: Find count of employees based on their experience range, 0-5, 5-10, 10-15, and 15-20 in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Find-count-of-employees-based-on-their-experience-range-0-5-5-10/m-p/545449#M154497</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232897"&gt;@SA2&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you have the experience in a field (called e.g. experience), you can use the eval command with the case option to tag the experiences, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your_search
| eval range=case(experience&amp;lt;6,"0-5", experience&amp;lt;11,"6-10", experience&amp;lt;16,"11-15", experience&amp;lt;21,"16-20", experience&amp;gt;20,"&amp;gt;20")
| stats count BY range&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Thu, 25 Mar 2021 16:56:11 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2021-03-25T16:56:11Z</dc:date>
    <item>
      <title>Find count of employees based on their experience range, 0-5, 5-10, 10-15, and 15-20</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-count-of-employees-based-on-their-experience-range-0-5-5-10/m-p/545448#M154496</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;I am new to Splunk and i have a task that "Find count of employees based on their experience range, 0-5, 5-10, 10-15, and 15-20" from a company&lt;/P&gt;&lt;P&gt;I am try lot used by&amp;nbsp;&lt;SPAN class="mw-headline"&gt;comparison operators but didn't get the answer, can you please help me in this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 16:49:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-count-of-employees-based-on-their-experience-range-0-5-5-10/m-p/545448#M154496</guid>
      <dc:creator>SA2</dc:creator>
      <dc:date>2021-03-25T16:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Find count of employees based on their experience range, 0-5, 5-10, 10-15, and 15-20</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-count-of-employees-based-on-their-experience-range-0-5-5-10/m-p/545449#M154497</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232897"&gt;@SA2&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you have the experience in a field (called e.g. experience), you can use the eval command with the case option to tag the experiences, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your_search
| eval range=case(experience&amp;lt;6,"0-5", experience&amp;lt;11,"6-10", experience&amp;lt;16,"11-15", experience&amp;lt;21,"16-20", experience&amp;gt;20,"&amp;gt;20")
| stats count BY range&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 16:56:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-count-of-employees-based-on-their-experience-range-0-5-5-10/m-p/545449#M154497</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-03-25T16:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Find count of employees based on their experience range, 0-5, 5-10, 10-15, and 15-20</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-count-of-employees-based-on-their-experience-range-0-5-5-10/m-p/545450#M154498</link>
      <description>&lt;P&gt;Thank you for your reply. i tried with query but its shows error like "&lt;SPAN&gt;Error in 'eval' command: Type checking failed. The '&amp;lt;' operator received different types".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Find the below query&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index=hrdata| eval range=case("Age in Company _Years"&amp;lt;6,"0-5", "Age in Company _Years"&amp;lt;11,"6-10", "Age in Company _Years"&amp;lt;16,"11-15", "Age in Company _Years"&amp;lt;20,"16-20", "Age in Company _Years"&amp;gt;20,"&amp;gt;20") | stats count BY "range"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 17:17:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-count-of-employees-based-on-their-experience-range-0-5-5-10/m-p/545450#M154498</guid>
      <dc:creator>SA2</dc:creator>
      <dc:date>2021-03-25T17:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Find count of employees based on their experience range, 0-5, 5-10, 10-15, and 15-20</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-count-of-employees-based-on-their-experience-range-0-5-5-10/m-p/545451#M154499</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232897"&gt;@SA2&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=hrdata
| rename "Age in Company _Years" AS age
| eval range=case(age&amp;lt;6,"0-5", age&amp;lt;11,"6-10", age&amp;lt;16,"11-15", age&amp;lt;21,"16-20", age&amp;gt;20,"&amp;gt;20") 
| stats count BY range&lt;/LI-CODE&gt;&lt;P&gt;It's never a good idea using spaces in field names.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 17:31:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-count-of-employees-based-on-their-experience-range-0-5-5-10/m-p/545451#M154499</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-03-25T17:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Find count of employees based on their experience range, 0-5, 5-10, 10-15, and 15-20</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-count-of-employees-based-on-their-experience-range-0-5-5-10/m-p/545454#M154501</link>
      <description>&lt;P&gt;Thank you Sir, its working now&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 17:41:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-count-of-employees-based-on-their-experience-range-0-5-5-10/m-p/545454#M154501</guid>
      <dc:creator>SA2</dc:creator>
      <dc:date>2021-03-25T17:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Find count of employees based on their experience range, 0-5, 5-10, 10-15, and 15-20</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-count-of-employees-based-on-their-experience-range-0-5-5-10/m-p/545455#M154502</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232897"&gt;@SA2&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you and next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 17:50:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-count-of-employees-based-on-their-experience-range-0-5-5-10/m-p/545455#M154502</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-03-25T17:50:49Z</dc:date>
    </item>
  </channel>
</rss>

