<?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: Concatenate failed and successful logins/authentication? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615705#M50548</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/190794"&gt;@johnhuang&lt;/a&gt;&amp;nbsp;, with this&lt;BR /&gt;&amp;nbsp;&lt;SPAN&gt;index=[index name] sourcetype=[sourcetypename] httpmethod=* status code=*&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| values(action) AS action&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;I got nothing.&amp;nbsp; Did you mean this below?:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;index=[index name] sourcetype=[sourcetypename] httpmethod=* status code=*&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| stats values(action) AS action&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;With the latter, I got a list of the actions in a table.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2022 18:46:24 GMT</pubDate>
    <dc:creator>Lye</dc:creator>
    <dc:date>2022-10-03T18:46:24Z</dc:date>
    <item>
      <title>Concatenate failed and successful logins/authentication?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615470#M50499</link>
      <description>&lt;P&gt;I would like to detect successful authentication after a brute force attempt. It would be nice to see multiple status code 400s and the 200s all from the same IP. That way, I do not have to do multiple searches for every IP. I used the below query but was unsuccessful. Please help if you can&lt;BR /&gt;&lt;BR /&gt;index=[index name] sourcetype=[sourcetypename] httpmethod=* status code=*&lt;BR /&gt;| eventstats count(eval('action'=="success")) AS success,&amp;nbsp;count(eval('action'=="failure")) AS failure BY src_ip&lt;BR /&gt;| where total_success&amp;gt;=1 AND total_failure&amp;gt;=15&lt;BR /&gt;| stats count by src_ip&lt;BR /&gt;&lt;BR /&gt;In between I even added&lt;BR /&gt;|strcat success . failure&lt;BR /&gt;but could not get results. Kindly assist.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 23:09:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615470#M50499</guid>
      <dc:creator>Lye</dc:creator>
      <dc:date>2022-09-30T23:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate failed and successful logins/authentication?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615472#M50500</link>
      <description>&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=[index name] sourcetype=[sourcetypename] httpmethod=* status code=*
| eval {action}=1
| eventstats count AS total_ct sum(success) AS success_ct sum(failure) AS failure_ct BY src_ip
| where success_ct&amp;gt;0 AND failure_ct&amp;gt;14&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 01 Oct 2022 00:15:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615472#M50500</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2022-10-01T00:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate failed and successful logins/authentication?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615478#M50504</link>
      <description>&lt;P&gt;&lt;EM&gt;I would like to detect successful authentication after a brute force attempt. It would be nice to see multiple status code 400s and the 200s all from the same IP. That way, I do not have to do multiple searches for every IP.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;that's a very good use-case.&lt;BR /&gt;hope you checked the other reply SPL query..&lt;/P&gt;&lt;P&gt;let us know how it went.. we will help you in troubleshooting further.. thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Oct 2022 02:57:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615478#M50504</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2022-10-01T02:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate failed and successful logins/authentication?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615571#M50521</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249988"&gt;@Lye&lt;/a&gt;&amp;nbsp;Using eventstats will not be the most performant solution and is not really necessary, instead you should just use&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=[index name] sourcetype=[sourcetypename] httpmethod=* status code=*
| stats values(*) as * count by src_ip action
| eval {action}=count
| fields - count
| stats values(*) as * by src_ip
| where success&amp;gt;=1 AND failure&amp;gt;=15&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;In the above, note that the first values(*) as * is just a mechanism to bring all the other fields along with the stats data - so change that to limit the field collection to what you want to pull through, e.g.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats values(_time) as _time, values(httpmethod) as httpmethod values(status_code) as status_code...&lt;/LI-CODE&gt;&lt;P&gt;The second values(*) as * should remain as it is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 03:30:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615571#M50521</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-10-03T03:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate failed and successful logins/authentication?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615696#M50545</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/190794"&gt;@johnhuang&lt;/a&gt;&amp;nbsp;, Thank you for your response. I tried it, but no result came up. Do you have any other advice you might give?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 18:26:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615696#M50545</guid>
      <dc:creator>Lye</dc:creator>
      <dc:date>2022-10-03T18:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate failed and successful logins/authentication?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615697#M50546</link>
      <description>&lt;P&gt;Could you provide the result of:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=[index name] sourcetype=[sourcetypename] httpmethod=* status code=*&lt;BR /&gt;| values(action) AS action&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 18:29:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615697#M50546</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2022-10-03T18:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate failed and successful logins/authentication?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615701#M50547</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp; Thank you for your response. I got some results with the queries you posted. However, it did not yield the result I anticipated. For example,&lt;BR /&gt;when I just tried this below:&lt;BR /&gt;&lt;SPAN&gt;index=[index name] sourcetype=[sourcetypename] httpmethod=* status code=*&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| stats count by src_ip&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;I got in a tabular form src_ip, httpmethod, status code and the count for each IP. I was hoping to have a search that will yield on each IP the number of 400s, 200s and each count. That way I don't have to do a search differently for each IP in the table looking for their respective counts of 400s and 200s.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 18:36:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615701#M50547</guid>
      <dc:creator>Lye</dc:creator>
      <dc:date>2022-10-03T18:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate failed and successful logins/authentication?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615705#M50548</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/190794"&gt;@johnhuang&lt;/a&gt;&amp;nbsp;, with this&lt;BR /&gt;&amp;nbsp;&lt;SPAN&gt;index=[index name] sourcetype=[sourcetypename] httpmethod=* status code=*&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| values(action) AS action&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;I got nothing.&amp;nbsp; Did you mean this below?:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;index=[index name] sourcetype=[sourcetypename] httpmethod=* status code=*&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| stats values(action) AS action&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;With the latter, I got a list of the actions in a table.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 18:46:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615705#M50548</guid>
      <dc:creator>Lye</dc:creator>
      <dc:date>2022-10-03T18:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate failed and successful logins/authentication?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615706#M50549</link>
      <description>&lt;P&gt;What are the action values?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 18:55:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615706#M50549</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2022-10-03T18:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate failed and successful logins/authentication?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615710#M50550</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/190794"&gt;@johnhuang&lt;/a&gt;&amp;nbsp;failure, delivered, blocked&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 19:22:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615710#M50550</guid>
      <dc:creator>Lye</dc:creator>
      <dc:date>2022-10-03T19:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate failed and successful logins/authentication?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615712#M50551</link>
      <description>&lt;P&gt;It's missing "success"?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 19:30:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615712#M50551</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2022-10-03T19:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate failed and successful logins/authentication?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615713#M50552</link>
      <description>&lt;P&gt;Yes it is&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 19:40:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615713#M50552</guid>
      <dc:creator>Lye</dc:creator>
      <dc:date>2022-10-03T19:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate failed and successful logins/authentication?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615741#M50560</link>
      <description>&lt;P&gt;This query you posted&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=[index name] sourcetype=[sourcetypename] httpmethod=* status code=*
| stats count by src_ip&lt;/LI-CODE&gt;&lt;P&gt;would not give you a table with httpmethod and status_code as you have not collected either of those fields in the stats command.&lt;/P&gt;&lt;P&gt;If you want the count of 400/200 for each IP then you would add this into the stats&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats count(eval(status_code=400)) as failed_count count(eval(status_code=200)) as success_count by src_ip&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 23:58:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/615741#M50560</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-10-03T23:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate failed and successful logins/authentication?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/616025#M50579</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;Yes, the query you sent worked. Thank you so much.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 15:43:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/616025#M50579</guid>
      <dc:creator>Lye</dc:creator>
      <dc:date>2022-10-05T15:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate failed and successful logins/authentication?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/616028#M50580</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/190794"&gt;@johnhuang&lt;/a&gt;&amp;nbsp;Thank you for you help. The Query from&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;worked.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 15:45:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Concatenate-failed-and-successful-logins-authentication/m-p/616028#M50580</guid>
      <dc:creator>Lye</dc:creator>
      <dc:date>2022-10-05T15:45:56Z</dc:date>
    </item>
  </channel>
</rss>

