<?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: need to create separate field which will show rank based on event Count in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463764#M191518</link>
    <description>&lt;P&gt;Can you share some sample data and your query by masking confidential data.&lt;BR /&gt;
since as per your data from question it should work.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jun 2020 05:33:47 GMT</pubDate>
    <dc:creator>493669</dc:creator>
    <dc:date>2020-06-03T05:33:47Z</dc:date>
    <item>
      <title>need to create separate field which will show rank based on event Count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463759#M191513</link>
      <description>&lt;P&gt;ComputerName    Events Rank&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    ABC     100        1
    BCD 200        2
    CDE     300        3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;i need to create Rank by Events&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 07:10:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463759#M191513</guid>
      <dc:creator>shivareddysompa</dc:creator>
      <dc:date>2020-05-29T07:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: need to create separate field which will show rank based on event Count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463760#M191514</link>
      <description>&lt;P&gt;@shivareddysompalle,&lt;BR /&gt;
Use first sort then streamstats  command to calculate rank-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|sort Events| streamstats count AS Rank
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Below is using sample data-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults|eval ComputerName ="abc", Events ="200"
|append[|makeresults|eval ComputerName ="bcd", Events ="100"]
|append[|makeresults|eval ComputerName ="def", Events ="300"]|sort Events| streamstats count AS Rank
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 May 2020 08:21:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463760#M191514</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2020-05-29T08:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: need to create separate field which will show rank based on event Count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463761#M191515</link>
      <description>&lt;P&gt;my intention is highest number of event has to hold 1 rank then following  and if events are same then rank should be same&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 09:32:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463761#M191515</guid>
      <dc:creator>shivareddysompa</dc:creator>
      <dc:date>2020-05-29T09:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: need to create separate field which will show rank based on event Count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463762#M191516</link>
      <description>&lt;P&gt;@shivareddysompalle,&lt;BR /&gt;
Try below-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults|eval ComputerName ="abc", Events ="200"
  |append[|makeresults|eval ComputerName ="bcd", Events ="100"]
   |append[|makeresults|eval ComputerName ="fcd", Events ="200"]
  |append[|makeresults|eval ComputerName ="def", Events ="300"]|sort - Events | streamstats current=f window=1 values(Events) as prev | eval Rank_filled=if(prev=Events,0,1) | accum Rank_filled
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Jun 2020 05:00:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463762#M191516</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2020-06-01T05:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: need to create separate field which will show rank based on event Count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463763#M191517</link>
      <description>&lt;P&gt;used same but not worked .&lt;BR /&gt;
i can't share my query since it is organisational data .&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 05:15:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463763#M191517</guid>
      <dc:creator>shivareddysompa</dc:creator>
      <dc:date>2020-06-03T05:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: need to create separate field which will show rank based on event Count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463764#M191518</link>
      <description>&lt;P&gt;Can you share some sample data and your query by masking confidential data.&lt;BR /&gt;
since as per your data from question it should work.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 05:33:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463764#M191518</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2020-06-03T05:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: need to create separate field which will show rank based on event Count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463765#M191519</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;    COmputerName  Countofissues
    ABC     10
    BCD     22
    DCE     32  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;my query is like &lt;BR /&gt;
eventstats dc(Computername) as Countofissues by Computername&lt;/P&gt;

&lt;P&gt;i need to assign rank based on Countofisues . Countofissues will change dynamically by time&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 05:41:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463765#M191519</guid>
      <dc:creator>shivareddysompa</dc:creator>
      <dc:date>2020-06-03T05:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: need to create separate field which will show rank based on event Count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463766#M191520</link>
      <description>&lt;P&gt;Try below without using above eventstats command-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|table ComputerName Countofissues|sort - Countofissues | streamstats current=f window=1 values(Countofissues) as prev | eval Rank=if(prev=Countofissues,0,1) | accum Rank|table ComputerName Countofissues Rank
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Jun 2020 05:53:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463766#M191520</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2020-06-03T05:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: need to create separate field which will show rank based on event Count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463767#M191521</link>
      <description>&lt;P&gt;how i will get Count of issues without eventstats ?&lt;BR /&gt;
if i use stats no issues are found&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 05:58:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463767#M191521</guid>
      <dc:creator>shivareddysompa</dc:creator>
      <dc:date>2020-06-03T05:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: need to create separate field which will show rank based on event Count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463768#M191522</link>
      <description>&lt;P&gt;use-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;stats count as Countofissues by ComputerName
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Jun 2020 06:01:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463768#M191522</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2020-06-03T06:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: need to create separate field which will show rank based on event Count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463769#M191523</link>
      <description>&lt;P&gt;even i have applied rank is same like 1 2 3&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 06:09:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463769#M191523</guid>
      <dc:creator>shivareddysompa</dc:creator>
      <dc:date>2020-06-03T06:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: need to create separate field which will show rank based on event Count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463770#M191524</link>
      <description>&lt;P&gt;my query is below:&lt;/P&gt;

&lt;P&gt;index="abc" source="bcd"&lt;BR /&gt;
|eval ComputerName=upper(ComputerName)&lt;BR /&gt;
|join ComputerName &lt;BR /&gt;
    [|savedsearch Computers_By_Product productName="DELL"]&lt;BR /&gt;
| eval title = replace(title,"{","") &lt;BR /&gt;
| eval title = replace(title,"}","")&lt;BR /&gt;
| rename title as signature &lt;BR /&gt;
| join type=left signature&lt;BR /&gt;
    [search index="abc" source="dce" earliest=1 latest=now() | stats dc(id) as IDs by signature]&lt;BR /&gt;
| eventstats dc(DateTime) as issueCount by ComputerName&lt;BR /&gt;
| eventstats dc(ID) as fixCount by ComputerName&lt;BR /&gt;
|sort issueCount |streamstats current=f window=1 values(issueCount) as Prev|eval Rank_filled=if(prev=Events,0,1) | accum Rank_filled|table ComputerName issueCount Rank_filled&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:36:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463770#M191524</guid>
      <dc:creator>shivareddysompa</dc:creator>
      <dc:date>2020-09-30T05:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: need to create separate field which will show rank based on event Count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463771#M191525</link>
      <description>&lt;P&gt;Try below-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="abc" source="bcd"
|eval ComputerName=upper(ComputerName)
|join ComputerName
[|savedsearch Computers_By_Product productName="DELL"]
| eval title = replace(title,"{","")
| eval title = replace(title,"}","")
| rename title as signature
| join type=left signature
[search index="abc" source="dce" earliest=1 latest=now() | stats dc(id) as IDs by signature]
| eventstats dc(DateTime) as issueCount by ComputerName
| eventstats dc(ID) as fixCount by ComputerName
|sort 0 - issueCount |streamstats current=f window=1 values(issueCount) as Prev|eval Rank_filled=if(prev=issueCount,0,1) | accum Rank_filled|table ComputerName issueCount Rank_filled
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Jun 2020 06:28:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463771#M191525</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2020-06-03T06:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: need to create separate field which will show rank based on event Count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463772#M191526</link>
      <description>&lt;P&gt;got results like&lt;/P&gt;

&lt;P&gt;issueCount      Rank&lt;BR /&gt;
            2       1&lt;BR /&gt;
            2       2&lt;BR /&gt;
            1       3&lt;BR /&gt;
            1       4&lt;/P&gt;

&lt;P&gt;need the rank like &lt;BR /&gt;
issueCount      Rank&lt;BR /&gt;
            2       1&lt;BR /&gt;
            2       1&lt;BR /&gt;
            1       2&lt;BR /&gt;
            1       2&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 07:00:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463772#M191526</guid>
      <dc:creator>shivareddysompa</dc:creator>
      <dc:date>2020-06-03T07:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: need to create separate field which will show rank based on event Count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463773#M191527</link>
      <description>&lt;P&gt;@woodcock&lt;/P&gt;

&lt;P&gt;please help on this&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 10:56:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/463773#M191527</guid>
      <dc:creator>shivareddysompa</dc:creator>
      <dc:date>2020-06-04T10:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: need to create separate field which will show rank based on event Count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/503853#M191528</link>
      <description>&lt;P&gt;anyone is there to help on above request?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 05:44:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-to-create-separate-field-which-will-show-rank-based-on/m-p/503853#M191528</guid>
      <dc:creator>shivareddysompa</dc:creator>
      <dc:date>2020-06-11T05:44:44Z</dc:date>
    </item>
  </channel>
</rss>

