<?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 How to display the number of failures, plus earliest(_time) and latest(_time) by src_ip? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-number-of-failures-plus-earliest-time-and/m-p/628194#M218221</link>
    <description>&lt;P&gt;Given web access log data with following fields:&lt;/P&gt;
&lt;P&gt;_time,&amp;nbsp; http_status, src_ip, dest_ip&lt;/P&gt;
&lt;P&gt;After a bruteforce attack on a login page, where http_status of 200=success and 401=failure,&amp;nbsp;how can I display the number of failures, plus earliest(_time) and latest(_time) by src_ip&lt;/P&gt;
&lt;P&gt;I've tried using streamstats like below, but do not get what I'm looking for&lt;/P&gt;
&lt;P&gt;index=myIndex AND status=*&lt;BR /&gt;| table _time status src_ip dest_ip&lt;BR /&gt;| sort + _time&lt;BR /&gt;| streamstats reset_on_change=true count earliest(_time) AS ET latest(_time) AS LT by status&lt;BR /&gt;| convert ctime(ET) ctime(LT)&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2023 15:58:25 GMT</pubDate>
    <dc:creator>mikefoti</dc:creator>
    <dc:date>2023-01-25T15:58:25Z</dc:date>
    <item>
      <title>How to display the number of failures, plus earliest(_time) and latest(_time) by src_ip?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-number-of-failures-plus-earliest-time-and/m-p/628194#M218221</link>
      <description>&lt;P&gt;Given web access log data with following fields:&lt;/P&gt;
&lt;P&gt;_time,&amp;nbsp; http_status, src_ip, dest_ip&lt;/P&gt;
&lt;P&gt;After a bruteforce attack on a login page, where http_status of 200=success and 401=failure,&amp;nbsp;how can I display the number of failures, plus earliest(_time) and latest(_time) by src_ip&lt;/P&gt;
&lt;P&gt;I've tried using streamstats like below, but do not get what I'm looking for&lt;/P&gt;
&lt;P&gt;index=myIndex AND status=*&lt;BR /&gt;| table _time status src_ip dest_ip&lt;BR /&gt;| sort + _time&lt;BR /&gt;| streamstats reset_on_change=true count earliest(_time) AS ET latest(_time) AS LT by status&lt;BR /&gt;| convert ctime(ET) ctime(LT)&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 15:58:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-number-of-failures-plus-earliest-time-and/m-p/628194#M218221</guid>
      <dc:creator>mikefoti</dc:creator>
      <dc:date>2023-01-25T15:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: streamstat</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-number-of-failures-plus-earliest-time-and/m-p/628196#M218222</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=myIndex AND status=*
| table _time status src_ip dest_ip
| sort + _time
| stats count(eval(status="401")) as count earliest(_time) AS ET latest(_time) AS LT by src_ip&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 24 Jan 2023 19:23:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-number-of-failures-plus-earliest-time-and/m-p/628196#M218222</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-01-24T19:23:00Z</dc:date>
    </item>
  </channel>
</rss>

