<?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 logs RADIUS : search and extract rows in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/logs-RADIUS-search-and-extract-rows/m-p/83047#M21095</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I currently have a problem with my RADIUS logs. &lt;BR /&gt;
I have to retrieve the name of all users whose connection was successful. &lt;BR /&gt;
Such information can be found in two different lines of logs, but under the same number of process.&lt;/P&gt;

&lt;P&gt;Such information can be found in two different lines of logs, but under the same number of processes. I have isolated the corresponding lines and I try to delete the rows for which the process number appears only once.&lt;/P&gt;

&lt;P&gt;How?&lt;BR /&gt;
thank you&lt;/P&gt;

&lt;P&gt;Here is an example and my current research:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;The search :&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;pam_radius_auth (Got user name) OR (authentication succeeded) | transaction pid&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;The result :&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;&amp;lt;39&amp;gt;Sep 15 16:44:09 bpwacs01v sshd[21657]: pam_radius_auth: Got user name reference&lt;/P&gt;

&lt;P&gt;&amp;lt;39&amp;gt;Sep 15 16:43:59 bpwacs01v sshd[21646]: pam_radius_auth: Got user name root&lt;/P&gt;

&lt;P&gt;&amp;lt;39&amp;gt;Sep 13 15:41:45 bpwacs01v sshd[12980]: pam_radius_auth: Got user name a102111&lt;BR /&gt;
&amp;lt;39&amp;gt;Sep 13 15:41:47 bpwacs01v sshd[12980]: pam_radius_auth: authentication succeeded&lt;/P&gt;

&lt;P&gt;&amp;lt;39&amp;gt;Sep 13 15:31:17 bpwacs01v sshd[25640]: pam_radius_auth: Got user name a102111&lt;BR /&gt;
&amp;lt;39&amp;gt;Sep 13 15:31:20 bpwacs01v sshd[25640]: pam_radius_auth: authentication succeeded&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;I would like for exmple delete the line of my research process numbers 21657 and 21646&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Thank you in advance for your advice&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 09:55:28 GMT</pubDate>
    <dc:creator>pascal37</dc:creator>
    <dc:date>2020-09-28T09:55:28Z</dc:date>
    <item>
      <title>logs RADIUS : search and extract rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/logs-RADIUS-search-and-extract-rows/m-p/83047#M21095</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I currently have a problem with my RADIUS logs. &lt;BR /&gt;
I have to retrieve the name of all users whose connection was successful. &lt;BR /&gt;
Such information can be found in two different lines of logs, but under the same number of process.&lt;/P&gt;

&lt;P&gt;Such information can be found in two different lines of logs, but under the same number of processes. I have isolated the corresponding lines and I try to delete the rows for which the process number appears only once.&lt;/P&gt;

&lt;P&gt;How?&lt;BR /&gt;
thank you&lt;/P&gt;

&lt;P&gt;Here is an example and my current research:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;The search :&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;pam_radius_auth (Got user name) OR (authentication succeeded) | transaction pid&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;The result :&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;&amp;lt;39&amp;gt;Sep 15 16:44:09 bpwacs01v sshd[21657]: pam_radius_auth: Got user name reference&lt;/P&gt;

&lt;P&gt;&amp;lt;39&amp;gt;Sep 15 16:43:59 bpwacs01v sshd[21646]: pam_radius_auth: Got user name root&lt;/P&gt;

&lt;P&gt;&amp;lt;39&amp;gt;Sep 13 15:41:45 bpwacs01v sshd[12980]: pam_radius_auth: Got user name a102111&lt;BR /&gt;
&amp;lt;39&amp;gt;Sep 13 15:41:47 bpwacs01v sshd[12980]: pam_radius_auth: authentication succeeded&lt;/P&gt;

&lt;P&gt;&amp;lt;39&amp;gt;Sep 13 15:31:17 bpwacs01v sshd[25640]: pam_radius_auth: Got user name a102111&lt;BR /&gt;
&amp;lt;39&amp;gt;Sep 13 15:31:20 bpwacs01v sshd[25640]: pam_radius_auth: authentication succeeded&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;I would like for exmple delete the line of my research process numbers 21657 and 21646&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Thank you in advance for your advice&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:55:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/logs-RADIUS-search-and-extract-rows/m-p/83047#M21095</guid>
      <dc:creator>pascal37</dc:creator>
      <dc:date>2020-09-28T09:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: logs RADIUS : search and extract rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/logs-RADIUS-search-and-extract-rows/m-p/83048#M21096</link>
      <description>&lt;P&gt;its kinda dirty but you could try something like "pam_radius_auth (Got user name) OR (authentication succeeded) | rex_ field=_raw "sshd[(?&lt;PID&gt;[^]]&lt;EM&gt;)]:\spam_radius_auth: Got user name\s(?&lt;USERNAME&gt;\S&lt;/USERNAME&gt;&lt;/EM&gt;)" | rex field=_raw "sshd[(?&lt;PID&gt;[^]]*)]:\spam_radius_auth:\s(?&lt;SUCCESS&gt;authentication succeeded)" | stats count by pid,username,success | where success &amp;gt; 1&lt;/SUCCESS&gt;&lt;/PID&gt;&lt;/PID&gt;&lt;/P&gt;

&lt;P&gt;This should produce a table showing:&lt;BR /&gt;
pid   username success                  count&lt;BR /&gt;
12980 a102111  authentication succeeded 2&lt;/P&gt;

&lt;P&gt;you can also key off of authentication failed for a listing of bad auth. I use something similar to produce daily reports of failed auth in a 24 hour period and rt searches for counts above X for alerting. &lt;/P&gt;

&lt;P&gt;Hope this helps. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:55:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/logs-RADIUS-search-and-extract-rows/m-p/83048#M21096</guid>
      <dc:creator>vlapeintuit</dc:creator>
      <dc:date>2020-09-28T09:55:30Z</dc:date>
    </item>
  </channel>
</rss>

