How to export results with the Web Reports API

Article ID: 564
Category: Web Reports
Applies to: 3.0 or later
Updated: 2026-10-29

EventSentry Web Reports provides a built-in REST API that allows all search queries and reports to be exported programmatically in JSON, XML, CSV, RSS, or PDF formats. Every feature page in the interface can be obtained using this export functionality.

Base URL Pattern

Export URLs follow a simple pattern:
http://{server}/{feature}/{format}

Where:
* {server} - Your EventSentry Web Reports host (e.g., localhost, eventsentry.domain.local)
* {feature} - The specific page or data source to query (see the supported endpoints list below)
* {format} - One of /json, /xml, /csv, /rss, or /pdf
* search.{parameter} - Query parameters prefixed with search.

Search Parameters / Query Options

All export URLs share a common set of search parameters:

  • search.type : detailed or summary view.
  • search.query : Lucene query string (supports field:value syntax - computer:server01).
  • search.sort : Sort field to order results.
  • search.order : asc or desc direction.
  • search.dateRange : Define the time window for results (e.g., Last 24 hours, Today, Yesterday).
  • search.limit : Number of records to return. Use -1 for unlimited.
  • search.group : Filter by computer group (requires search.type=summary).
  • search.agg : Aggregation method (sum, average, count, etc.). (NetFlow only)
  • search.union : Union of multiple queries. (NetFlow only)

Export Formats

JSON

Returns structured data in a native JavaScript Object Notation (JSON) response. The outermost object always contains a results array.

  • The fields inside each result object vary by endpoint but always include a set of fields relevant to that data type.
  • Common shared fields across most endpoints include: time, computer, dateTime, or recorddate for timestamps.
  • The API always returns valid JSON even when no results match, providing an empty array: {"results": []}.

Example - Event log search in JSON:
URL:
https://localhost:8443/events/json?search.limit=1
Response:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
"results":  [
  {
        "eventId": 4624,
        "computer": "DC01",
        "time": "2026-11-01T10:00:00Z",
        "eventNumber": "5400026",
        "eventLog": "Security",
        "eventType": "Audit Success",
        "source": "Microsoft-Windows-Security-Auditing",
        "category": "User Account Management",
        "message": "An attempt was made to reset an account's password."
  }
]}

CSV

Returns tabular data suitable for use in spreadsheets or data analysis tools. The first line contains column headers, followed by one row per record.

  • Available from most pages in both Summary and Detailed views.
  • When exporting all matches, the search.limit parameter can be set to -1.
  • CSV export is ideal for bulk data processing, integration with external BI tools, or generating compliance reports.

Example : Export event logs as CSV:
https://localhost:8443/events/csv?search.type=detailed&search.dateRange=Last+24+hours

XML

Returns a standard XML feed.

  • XML feeds are ideal for integrations with external monitoring systems, log aggregation pipelines, or RSS readers.
  • Works on all event and log types across EventSentry.

Example : Export event logs via XML:
https://localhost:8443/events/xml?search.type=detailed&search.dateRange=Today

Supported Endpoints

The following endpoints are available for export in all formats: JSON, XML, CSV, RSS, and PDF.

Event Log Monitoring

  • /events - General event log search (all logs). Fields: eventId, computer, eventNumber, eventLog, eventType, source, time, category, userName, message.
  • /syslog - Syslog forwarding events. Fields: computer, message, sourceHost, timestamp, facility, severity.
  • /snmp - SNMP trap monitoring. Fields: receiver, sender, community, version, oid, trapsent, bindings.
  • /logfiles - Delimited/parsable log file entries. Fields: path, computer, dateTime, fileName, logType, message.

Active Directory Monitoring (ADMonitor)

  • /adchanges - AD object changes (creates/updates/deletes). Fields: domainDNS, operation, samAccount, objectsid, displayName, targetComputer, dateTime.
  • /adgpchanges - Group Policy Object changes. Fields: domainDNS, groupName, gpcFileSysPath, computer, dateTime, changeType.
  • /adcomputers - Active Directory computer accounts. Fields: domainDNS, name, dnsHostName, operatingSystem, lastLogonTimestamp, dNSAHost, disabled, lockedOut, adminCount, accountExpires.
  • /adgroups - AD group membership changes. Fields: domainDNS, groupName, objectsid, memberAdded, memberRemoved, computer, dateTime.
  • /adusers - Active Directory user accounts. Fields: domainDNS, samAccount, name, fullname, upn, objectsid, objectguid, disabled, lockedOut, passwordExpired, passwordNeverExpires, admin, lastLogon, pwdlastset, accountExpires.
  • /computeraccountchanges - Computer account change history. Fields:...
  • /groupaccountchanges - Group membership changes via event log.
  • /trustrelationships - AD trust relationship monitoring.

User Activity & Authentication

  • /logons - Successful logon events. Fields: domainDNS, samAccount, logonServer, computerName, ipaddress, logontype, authenticationDuration, time, success.
  • /networklogons - Network logon events by source.
  • /logonfailures - Failed logon attempts. Fields: domainDNS, samAccount, ipAddress, logonServer, logontype, failureReason, time.
  • /userlogonrights - Privileged user logon right assignments.

Process & Service Monitoring

  • /processactivity - Real-time process monitoring. Fields: path, processCmdLine, userName, cpuUsage, pID, memoryUsed, group, time, startUpTime.
  • /processstatus - Process status tracking.
  • /processnetstat - Active networking by process. Fields: path, computer, destinationIp, destinationPort, localPort, tcpProtocol, userName, time.
  • /processsysmon - Sysmon process events.
  • /servicestatus - Service monitoring with service uptime.
  • /servicehistory - Service configuration changes.

File Monitoring

  • /fileaccess - File system access monitoring. Fields: computer, fileName, fileAction, filePath, userName, time, directoryPath, fileSize.
  • /filechecksumstatus - File integrity (checksum) monitoring.
  • /filechecksumhistory - File integrity change history.

Compliance & Security Policy

  • /auditpolicystatus - Windows audit policy status.
  • /domainpolicy - Active Directory domain security policy.
  • /kerberospolicy - Kerberos authentication policy.
  • /registrytracking - Registry change monitoring.
  • /permissionstatus - File/folder permission changes.

Scheduled Tasks & Jobs

  • /scheduledtasks - Active scheduled task monitoring.
  • /scheduledtaskshistory - Scheduled task configuration changes.

Software & System Inventory

  • /softwareinventory - Software inventory (installed applications).
  • /softwarehistory - Software install/removal history.
  • /patchinventory - Windows patch/compliance inventory.
  • /patchhistory - Patch installation/removal history.
  • /browserstatus - Web browser version inventory.
  • /browserhistory - Browser version changes.
  • /hardwareinventory - Hardware asset information.
  • /virtualmachines - Monitored virtual machines.
  • /largefiles - Large file tracking.

Network & Environment Monitoring

  • /arpstatus - ARP table monitoring.
  • /arphistory - ARP change history.
  • /wifihistory - Wi-Fi network connection history.
  • /uptimehistory - Server uptime tracking.
  • /diskspacestatus - Real-time disk space monitoring.
  • /diskspacetrends - Disk usage trends over time.
  • /folderstatus - Folder size monitoring.
  • /performancestatus - Real-time performance counters.

Agent & Infrastructure Health

  • /heartbeatstatus - Agent heartbeat status (current).
  • /heartbeathistory - Agent check-in history.
  • /maintenance/agent - Remote agent management and deployment. (coming soon)
  • /maintenance/collector - Collector node status overview. (coming soon)

Usage Examples

Example 1 - Fetch event log data as JSON via curl

Command:
curl -X GET "https://localhost:8443/events/json?search.limit=100"

Example 2 - Export admininstrative AD users as CSV for compliance

URL:
https://localhost:8443/adusers/csv?search.query=admin%3AYes

Example 3 - Create an RSS feed of SNMP traps for external monitoring

URL:
https://localhost:8443/snmp/rss?search.daterange=Today

Example 4 - Export a filtered service status list as JSON (PowerShell)

1
2
3
$url = "https://localhost:8443/servicestatus/json?search.query=service%3A"Print+Spooler"&search.type=detailed"
$data = Invoke-RestMethod -Uri $url
$data.results | Format-Table

Example 5 - Generate a scheduled CSV report of login failures (Windows Task Scheduler)

1
powershell.exe -Command "Invoke-RestMethod -Uri 'https://localhost:8443/logonfailures/csv?search.dateRange=Today' -OutFile 'C:\Reports\LogonFailures.csv'"


Try EventSentry on-premise

FREE 30-day evaluation

Download Now