<?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 correlate ldap logs? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-correlate-ldap-logs/m-p/544309#M5318</link>
    <description>&lt;P&gt;Thanks for the help, it’s almost perfect. We slightly modified your query :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=ldap sourcetype="openldap:access"
| stats values(cn) as cn, values(IP) as IP, values(err) as err, count(err) as err_count by dest conn
| where err!=0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Unfortunately, the condition &lt;FONT face="courier new,courier" color="#3366FF"&gt;| where err!=0&lt;/FONT&gt; doesn’t return a result if there are error codes other than 0. For example, it could be few failed authentication followed by a successful one like in this case:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 958px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13364iA871199A9390DC95/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We triedto use some other conditions like&lt;FONT face="courier new,courier" color="#3366FF"&gt; |search NOT err=0&lt;/FONT&gt; but with no success. Do you have an idea how to make it work?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;&lt;P&gt;___________________&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The solution is to use the condition below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where NOT err=0&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 18 Mar 2021 12:49:47 GMT</pubDate>
    <dc:creator>woodentree</dc:creator>
    <dc:date>2021-03-18T12:49:47Z</dc:date>
    <item>
      <title>How to correlate ldap logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-correlate-ldap-logs/m-p/544148#M5306</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have a standard openldap logs which looks like this :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Mar 17 07:01:46 abc123 slapd[1234]: conn=1001 op=1 RE SULT tag=97 err=49 text=
Mar 17 07:01:45 abc123 slapd[1234]: conn=1001 op=1 BIND dn="cn=my_username,ou=users,dc=my_dc,dc=fr" method=128
Mar 17 07:01:44 abc123 slapd[1234]: conn=1001 fd=12 ACCEPT from IP=10.111.22.123:46662 (IP=10.111.22.123:636)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;We’d like to detect error code other than “success” in our ldap logs:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=ldap sourcetype="openldap:access" err!=0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, we can't find a way correlate this event with other events in order to find the username and the ip address related to the same conn. Do you have an idea how we can do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 10:25:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-correlate-ldap-logs/m-p/544148#M5306</guid>
      <dc:creator>woodentree</dc:creator>
      <dc:date>2021-03-17T10:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to correlate ldap logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-correlate-ldap-logs/m-p/544237#M5314</link>
      <description>&lt;P&gt;Use the stats command to group events by a common field (conn?) then filter on err.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=ldap sourcetype="openldap:access" 
| stats values(*) as * by conn
| where err!=0&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 17 Mar 2021 16:43:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-correlate-ldap-logs/m-p/544237#M5314</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-03-17T16:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to correlate ldap logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-correlate-ldap-logs/m-p/544309#M5318</link>
      <description>&lt;P&gt;Thanks for the help, it’s almost perfect. We slightly modified your query :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=ldap sourcetype="openldap:access"
| stats values(cn) as cn, values(IP) as IP, values(err) as err, count(err) as err_count by dest conn
| where err!=0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Unfortunately, the condition &lt;FONT face="courier new,courier" color="#3366FF"&gt;| where err!=0&lt;/FONT&gt; doesn’t return a result if there are error codes other than 0. For example, it could be few failed authentication followed by a successful one like in this case:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 958px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13364iA871199A9390DC95/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We triedto use some other conditions like&lt;FONT face="courier new,courier" color="#3366FF"&gt; |search NOT err=0&lt;/FONT&gt; but with no success. Do you have an idea how to make it work?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;&lt;P&gt;___________________&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The solution is to use the condition below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where NOT err=0&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 18 Mar 2021 12:49:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-correlate-ldap-logs/m-p/544309#M5318</guid>
      <dc:creator>woodentree</dc:creator>
      <dc:date>2021-03-18T12:49:47Z</dc:date>
    </item>
  </channel>
</rss>

