<?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: How to only display the lowest value of field per group in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-only-display-the-lowest-value-of-field-per-group/m-p/297560#M89784</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|stats min(Workflow Step Sort Order) as min by Name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 18 Feb 2018 17:35:20 GMT</pubDate>
    <dc:creator>493669</dc:creator>
    <dc:date>2018-02-18T17:35:20Z</dc:date>
    <item>
      <title>How to only display the lowest value of field per group</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-only-display-the-lowest-value-of-field-per-group/m-p/297558#M89782</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;I am tabling a bunch of data. In the table there is a field called Workflow Sort Order which orders the the data within the logs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Name"     "Vendor" "EngagementScope"    "Workflow Step Sort Order"      "Step Due Date"  
 AA    Vendor1  TestEngagementScope1    0    2018-02-15 20:38:10.154000      
 AA    Vendor1  TestEngagementScope1   1    2018-03-01 20:38:10.154000
 AA    Vendor1  TestEngagementScope1    2    2018-03-08 20:38:10.154000
 AA    Vendor1 TestEngagementScope1    3    2018-03-15 20:38:10.154000
 AA    Vendor1  TestEngagementScope1    4    2018-03-22 20:38:10.154000



AB    Vendor2 TestEngagementScope1      1    2018-02-15 20:38:10.154000      
AB    Vendor2  TestEngagementScope1      2    2018-03-01 20:38:10.154000
AB    Vendor2  TestEngagementScope1     3    2018-03-08 20:38:10.154000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I would like to do is eval or something to only show the lowest value of "Workflow Step Sort Order" for each "Name"&lt;BR /&gt;
Thanks for the help!!&lt;/P&gt;</description>
      <pubDate>Sun, 18 Feb 2018 17:25:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-only-display-the-lowest-value-of-field-per-group/m-p/297558#M89782</guid>
      <dc:creator>tkwaller_2</dc:creator>
      <dc:date>2018-02-18T17:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to only display the lowest value of field per group</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-only-display-the-lowest-value-of-field-per-group/m-p/297559#M89783</link>
      <description>&lt;P&gt;Hi  tkwaller_2,&lt;BR /&gt;
try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your_search
| stats values(Vendor) AS Vendor values(EngagementScope) AS EngagementScope earliest("Workflow Step Sort Order") AS "Workflow Step Sort Order" values("Step Due Date") AS "Step Due Date" BY Name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 18 Feb 2018 17:30:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-only-display-the-lowest-value-of-field-per-group/m-p/297559#M89783</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2018-02-18T17:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to only display the lowest value of field per group</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-only-display-the-lowest-value-of-field-per-group/m-p/297560#M89784</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|stats min(Workflow Step Sort Order) as min by Name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 18 Feb 2018 17:35:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-only-display-the-lowest-value-of-field-per-group/m-p/297560#M89784</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-02-18T17:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to only display the lowest value of field per group</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-only-display-the-lowest-value-of-field-per-group/m-p/297561#M89785</link>
      <description>&lt;P&gt;Being more specific with more data&lt;BR /&gt;
In the table above the only events that need to be returned are :&lt;/P&gt;

&lt;P&gt;"Name"     "Vendor"    "EngagementScope"    "Workflow Step Sort Order"      "Step Due Date"&lt;BR /&gt;&lt;BR /&gt;
  AA    Vendor1  TestEngagementScope1    0    2018-02-15 20:38:10.154000&lt;BR /&gt;&lt;BR /&gt;
 AB    Vendor2 TestEngagementScope1      1    2018-02-15 20:38:10.154000      &lt;/P&gt;

&lt;P&gt;The table CURRENTLY consists of many fields, I excluded these from the above as it wasnt necessarily important but I still need the fields in the table.:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| table Service Vendor EngagementScope "Assessment Assignee" "Assessment Assignee Email Address" Phone LOB AssessmentName "Assessment Type" "Assessment Status" "Past Due Step Name" "Past Due Step Due Date" "SLA for Past Due Step" "Days step is past due"  "Cumulative Due Date" CumulativeActualDaysLate "Assessment Start Date" "Projected Completion Date" "Total Projected Late"  "Workflow Step Sort Order"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So the table would essentially be&lt;BR /&gt;
"Name"     "Vendor"    "EngagementScope"    "Workflow Step Sort Order"      "Step Due Date"&lt;BR /&gt;&lt;BR /&gt;
  AA    Vendor1  TestEngagementScope1    0    2018-02-15 20:38:10.154000      ...&lt;BR /&gt;
 AB    Vendor2 TestEngagementScope1      1    2018-02-15 20:38:10.154000    ...&lt;/P&gt;

&lt;P&gt;but again I only need the records that are the lowest value of the field "Workflow Step Sort Order" per "Name"     "Vendor"    "EngagementScope" &lt;/P&gt;</description>
      <pubDate>Sun, 18 Feb 2018 17:49:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-only-display-the-lowest-value-of-field-per-group/m-p/297561#M89785</guid>
      <dc:creator>tkwaller_2</dc:creator>
      <dc:date>2018-02-18T17:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to only display the lowest value of field per group</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-only-display-the-lowest-value-of-field-per-group/m-p/297562#M89786</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search giving table in question
| eventstats min("Workflow Step Sort Order") as min by Name
| where min='Workflow Step Sort Order' | fields - min
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; your current search giving table in question
| sort "Workflow Step Sort Order" by Name
| dedup Name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 18 Feb 2018 18:19:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-only-display-the-lowest-value-of-field-per-group/m-p/297562#M89786</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-02-18T18:19:42Z</dc:date>
    </item>
  </channel>
</rss>

