Skip to main content

Windows Active Directory Inventory Source

Our Windows Active Directory Inventory Source collects inventory data from Active Directory Database. This includes information such as computer names, user names, email addresses, and location information.

Sumo Logic Cloud SIEM uses information from Windows Active Directory Inventory to enrich log data to help provide additional context and build a more complete profile of your network, for example, by connecting the dots between a location, and the servers, workstations, and users in that location.

note

The Installed Collector with the Windows Active Directory Inventory Source can be installed on a Domain Controller or a server that is a member of the domain.

This Source is available with Collector version 19.351-4 and later.

The following information is collected:

  • Username
  • Email address
  • Departments to which employee belongs
  • Employee’s manager
  • Security groups to which the employee is assigned, which allows Cloud SIEM to determine the privileges the user has on the company network

Setup

tip

Install a single Active Directory Source to collect inventory data from your entire AD domain.

To configure a Windows Active Directory Inventory Source:

  1. In the main Sumo Logic menu, select Manage Data > Collection > Collection.
  2. Find the Installed Collector you'd like to add the Source to. Click Add and then choose Add Source from the pop-up menu.
  3. Click Windows Active Directory Inventory.
    Windows Active Directory Inventory icon
  4. Set the following:
    Windows Active Directory Inventory Source
    • Name. Type the name for the new Source. 
    • Description is optional.
    • Fetch Interval. By default, Active Directory is queried for data every 24 hours (86400 seconds). You can select a more frequent interval, but it shouldn't be more frequent than every 10 hours (36000 seconds).
    • Source Category. Enter a string used to tag the output collected from this Source with searchable metadata. For example, typing web_apps tags all the logs from this Source in the sourceCategory field, so running a search on _sourceCategory=web_apps would return logs from this Source. For more information, see Metadata Naming Conventions and our Best Practices: Good and Bad Source Categories. You can define a Source Category value using system environment variables, see Configuring sourceCategory using variables below.
    • Fields. Click the +Add Field link to define the fields you want to associate, each field needs a name (key) and value. You need to set the following fields.
    • _siemVendor: Microsoft
    • _siemProduct: Windows
    • _siemForward: true
    • _siemDataType: Inventory
      • green check circle.png A green circle with a check mark is shown when the field exists in the Fields table schema.
      • orange exclamation point.png An orange triangle with an exclamation point is shown when the field doesn't exist in the Fields table schema. In this case, an option to automatically add the nonexistent fields to the Fields table schema is provided. If a field is sent to Sumo that does not exist in the Fields schema it is ignored, known as dropped.
    • Active Directory Attributes. (Optional)
      • Additional Attributes. Provide a semi-colon separated list of the LDAP Names of Active Directory attributes to report, in addition to the default list:
        • Username
        • Email address
        • Departments to which employee belongs
        • Employee’s manager
        • Security groups to which the employee is assigned
      • Excluded Attributes. Provide a semi-colon separated list of the LDAP Names of Active Directory attributes to exclude from the report.
      • Exclude Distinguished Name Suffixes. Provide a semi-colon separated list of Distinguished Name suffixes. When set, the Source won't ingest any records that contain the Distinguished Name suffixes specified.
      • Directory Filter. Specifies a filter to use when searching for Domain Objects in Active Directory.
    • Advanced Options for Logs.
      • Enable Timestamp Parsing. Disable this option so that timestamps are not parsed. Disabling this option will stamp logs with the time at which the messages are received. For more information, see Message time and receipt time.
    • Processing Rules for Logs. Create any processing rules you'd like for the new Source.
  5. Click Save.

You can return to this dialog and edit the settings for the Source at any time.

Configuring sourceCategory using variables

Sumo Logic Collector versions 19.216-22 and later allow you to define Source Category and Source Host metadata values with system environment variables from the host machine.

note

Not all Sources can define a Source Host value.

When configuring your Source, specify the system environment variables by prepending sys. and wrapping them in double curly brackets {{}} in this form:

{{sys.VAR_NAME}}

Where VAR_NAME is an environment variable name, for example:

{{sys.PATH}}

You can use multiple variables, for example:

{{sys.PATH}}-{{sys.YourEnvVar}}

img

tip

The example above uses a hyphen (-) character to separate variable components. Separator characters are not required. Curly brackets and spaces are not allowed. Underscores and hyphens are recommended.

You can incorporate text in the metadata expression, for example:

AnyTextYouWant_{{sys.PATH}}_{{sys.YourEnvVar}}

If a user-defined variable doesn’t exist, that portion of the metadata field will be blank.

Filtering AD Objects in the Collector Configuration

When configuring the Windows Active Directory Inventory Source, there are several options within the Attributes section to filter out specific AD objects. This section explains how to use these options and provides examples for each.

Directory Filter

The Directory Filter allows you to use LDAP queries to filter AD objects based on various properties. This is the recommended method for filtering by properties other than the distinguished name.

For example, to filter AD objects where the department is Sales, use the following LDAP filter:

Get-ADUser -LDAPFilter "(&(objectClass=user)(department=Sales))"

Usage in Directory Filter

(&(objectClass=user)(department=Sales))

Before applying this filter in the source configuration, you can verify it by running the PowerShell query provided above.

Another common filter is to get all user objects:

(&(objectClass=user)(objectCategory=person))

This yields AD objects with the following class:

top;person;organizationalPerson;user

Exclude Distinguished Name Suffixes

The Exclude Distinguished Name Suffixes option filters AD objects based solely on the distinguishedName property. This method is useful when you want to exclude objects from specific organizational units or domains.

For example, to exclude objects from a specific OU:

OU=Sales,DC=example,DC=com

Excluded Attributes

The Excluded Attributes option can be used to exclude specific attributes from being collected but does not filter out entire objects. This option is more relevant for privacy or compliance requirements where certain data fields should not be retrieved.

Summary of Filtering Options

  • Directory Filter. Use for filtering based on various AD properties using LDAP queries.
  • Exclude Distinguished Name Suffixes. Use for filtering based on the distinguishedName property.
  • Excluded Attributes. Use for excluding specific attributes from being collected.
Status
Legal
Privacy Statement
Terms of Use

Copyright © 2024 by Sumo Logic, Inc.