RunReveal

Windows Event Log source

The eventlog source subscribes to Windows Event Log channels and streams events in real time.

This source is only available on Windows.

Configuration

{
  "sources": {
    "security": {
      "type": "eventlog",
      "channel": "Security"
    }
  }
}

Options

OptionTypeDefaultDescription
channelstringrequired for XPath queriesEvent log channel name (e.g. "Security", "Application", "System")
querystring""XPath 1.0 or structured XML query to filter events
bufferint128Maximum events buffered between reads. Events are dropped if the buffer fills.

Examples

Collect Security events

{
  "sources": {
    "security": {
      "type": "eventlog",
      "channel": "Security"
    }
  }
}

Filter with an XPath query

{
  "sources": {
    "login-failures": {
      "type": "eventlog",
      "channel": "Security",
      "query": "*[System[EventID=4625]]"
    }
  }
}

Multiple channels

{
  "sources": {
    "security": {
      "type": "eventlog",
      "channel": "Security"
    },
    "application": {
      "type": "eventlog",
      "channel": "Application"
    },
    "system": {
      "type": "eventlog",
      "channel": "System"
    }
  }
}

Event fields

FieldValue
sourceType"eventlog"
rawLogEvent data

On this page