Developer API
Security and Diagnostics via API

Security and Diagnostics via API

Retrieve security (firewall) rules and diagnostic logs for your Log stacks using the Logit.io Developer API. Use these endpoints to audit configuration, troubleshoot pipeline issues, and integrate with monitoring tools.

Use your Dashboard API key from the Profile (opens in a new tab) page in the x-api-key header. See Authentication for setup and security. Examples use @logs_id for your Log stack (from your session/JWT when signed in).

Get Firewall Rules

Returns firewall rules for a Log stack. Firewall rules restrict which IP addresses can send data to your Logstash endpoints:

curl -H "x-api-key: @dashboardApiKey" https://dashboard.logit.io/api/stacks/@logs_id/security

The response includes firewallRules with rule IDs, names, descriptions, and whitelists. For configuring firewall rules in the UI, see Whitelisted Hosts.

Get Diagnostics

Returns diagnostic log entries for a Log stack. Use this to troubleshoot pipeline issues, monitor component health, and search for errors. Page and PageSize are required.

Basic request

curl -H "x-api-key: @dashboardApiKey" "https://dashboard.logit.io/api/stacks/@logs_id/diagnostics?Page=1&PageSize=50"

With optional filters

Add Component, Level, SearchTerm, or TimeRange as needed.

curl -H "x-api-key: @dashboardApiKey" "https://dashboard.logit.io/api/stacks/@logs_id/diagnostics?Page=1&PageSize=50&Component=logstash&Level=error&SearchTerm=timeout"
ParameterDescription
PagePage number (required)
PageSizeNumber of entries per page (required)
ComponentFilter by component name
LevelFilter by log level
SearchTermSearch within log messages
TimeRangeLimit to a time range

The response includes logEntries, totalLogs, and resultsSkipped. Each entry has timestamp, level, component, and message.

Full API Reference

See the API Reference for complete endpoint documentation and response schemas.