Skip to main content
Sumo Logic

Osquery

Configure an HTTP source to ingest osquery log messages and send them to the osquery system parser.

This page has instructions for collecting osquery log messages and sending them to Sumo Logic to be ingested by CSE.

Sumo Logic CSE supports osquery logs sent in JSON format for the following log types:

  • Schedule results in Events format
  • Process Auditing
  • Anomaly Detection
  • File Integrity Monitoring

Configure CIP collection

In this step, you configure an HTTP Source to collect osquery log messages. You can configure the source on an existing Hosted Collector or create a new collector. If you’re going to use an existing collector, jump to Configure an HTTP Source below. Otherwise, create a new collector as described in Configure a hosted collector below, and then create the HTTP Source on the collector.

Configure a hosted collector

  1. In Sumo Logic, select Manage Data > Collection > Collection.
  2. Click Add Collector.
  3. Click Hosted Collector.
  4. The Add Hosted Collector popup appears.
    add-hosted-collector.png
  5. Name. Provide a Name for the Collector.
  6. Description. (Optional)
  7. Category. Enter a string to tag the output collected from the source. The string that you supply will be saved in a metadata field called _sourceCategory
  8. Fields
    1. If you are planning that all the sources you add to this collector will forward log messages to CSE, click the +Add Field link, and add a field whose name is _siemForward and value is true. This will cause the collector to forward all of the logs collected by all of the sources on the collector to CSE.
    2. If all sources in this collector will be osquery sources, add an additional field with key _parser and value /Parsers/System/Osquery/Osquery JSON.

Configure an HTTP Source

  1. In the Sumo Logic web app, select Manage Data > Collection > Collection
  2. Navigate to the Hosted Collector where you want to create the source.
  3. On the Collectors page, click Add Source next to a Hosted Collector.
  4. Select HTTP Logs & Metrics
  5. The page refreshes.
    http-source.png
  6. Name. Enter a name for the source. 
  7. Description. (Optional) 
  8. Source Host. (Optional) Enter a string to tag the messages collected from the source. The string that you supply will be saved in a metadata field called _sourceHost.
  9. Source Category. Enter a string to tag the output collected from the source. The string that you supply will be saved in a metadata field called _sourceCategory.
  10. SIEM Processing. Click the checkbox to configure the source to forward log messages to CSE.
  11. Fields. If you are not parsing all sources in the hosted collector with the same parser, +Add Field named _parser with the value /Parsers/System/Osquery/Osquery JSON.
  12. Advanced Options for Logs. For information about the optional advanced options you can configure, see HTTP Logs and Metrics Source.
  13. Click Save.
  14. Make a note of the HTTP Source URL that is displayed. You’ll supply it in when you configure osquery in the next section.

Configure an Osquery log profile

In this step you configure osquery to send log messages to CIP. For instructions, see Logging osquery in osquery help.

Verify ingestion

In this step, you verify that your logs are successfully making it into CSE. 

  1. Click the gear icon, and select Log Mappings under Incoming Data.
    log-mappings-link.png
  2. On the Log Mappings page, search for osquery and check under Record Volume.
  3. For a more granular look at the incoming records, you can also search Sumo Logic for osquery Records.
    osquery-record-volume.png