Parsers¶
A parser turns a source's raw lines into fields. Manage them under Settings > Log processing > Parsers. Every data source uses one parser.
Builtin parsers¶
DRACO ships parsers for common formats and for every cloud source:
- generic:
json,ndjson,text,syslog,syslog-rfc3164,syslog-rfc5424,cef,leef,logfmt,kv,nginx-access,vector(the edge collector's envelope); - cloud and SaaS:
cloudflare-audit,cloudflare-firewall-events,cloudflare-logpush-http-requests,aws-cloudtrail,flyio-logs,okta-system-log,github-audit-log,github-webhook,m365-management-activity,azure-activity-log,gcp-audit-log,databricks-audit,google-workspace-audit,slack-audit-logs,onepassword-events,kubernetes-audit; - security products:
crowdstrike-falcon,sentinelone,microsoft-defender-xdr,elastic-security,wazuh-alerts,splunk,fortigate-syslog,paloalto-syslog,checkpoint-syslog,cef-syslog; andeasm-changes(attack surface changes).
Builtin parsers cannot be edited; copy one to start a custom parser.
Custom parsers¶
The editor has the definition, a Test panel (paste sample lines and see the parsed fields, before saving), a VRL tab (the same parser compiled for the edge collector) and Generate with AI Assistant (describe or paste samples and DRACO AI Assistant writes a parser, tested before it is shown).
A definition:
{
"format": "json | ndjson | logfmt | kv | csv | regex | grok | syslog | cef | leef | vector | flyio",
"options": {"pattern": "%{IP:client} %{WORD:verb}"},
"multiline": {"start": "^\\d{4}-"},
"null_values": ["-"],
"extract": [{"type": "regex", "field": "message", "pattern": "user=(?<user>\\S+)"}],
"rename": {"old": "new"},
"timestamp": {"field": ["time", "@timestamp"], "format": "auto", "timezone": "UTC"},
"defaults": {"category_uid": "iam"},
"map": {
"actor_user": "user.name",
"src_ip": ["client_ip", "remote_addr"],
"severity_id": {"field": "level", "lookup": {"error": 4}, "default": 1},
"message": {"template": "{verb} {path}"}
},
"drop": ["debug"],
"mask": [{"pattern": "\\d{16}", "replacement": "****"}]
}
- format reads the line; extract pulls more fields out of a field (regex, grok, JSON, key-value).
- map fills the normalized columns (OCSF names:
ts,src_ip,dst_ip,actor_user,action,status,host,url,user_agent,resource_uid,severity_id,class_uid...). Fields that are not mapped stay searchable underfields.<name>. - mask hides values in the raw line and the fields. Default masks already hide AWS access keys and secrets, bearer tokens and
password=values.
Parse status¶
Each event records how it parsed: ok, partial (an extraction, the timestamp or a mapping failed; the rest applied and the time falls back to the ingest time) or failed (stored with the raw line). Search with parse_status=failed to find them; the source page lists the latest ones.