Network devices, Linux hosts, firewalls and routers all speak syslog — and almost none of them speak JSON, which is what every modern collector, SIEM and log shipper actually wants to ingest. Syslog to JSON Converter parses both of the dominant dialects — the older RFC 3164 “BSD syslog” format and the newer RFC 5424 format — into clean, structured JSON records in a single paste, entirely client-side.
Each line becomes one object. For RFC 3164 lines (<34>Oct 11 22:14:15 mymachine su[523]: su root) the parser extracts the timestamp, hostname, the program tag, and the PID when the tag uses the tag[pid] form, defaulting the year to the current one since RFC 3164 timestamps don’t carry a year. For RFC 5424 lines (<165>1 2003-10-11T22:14:15.003Z mymachine.example.com evntslog - ID47 [exampleSDID@32473 iut="3"] message) it extracts the version-validated header fields — hostname, app-name, procid, msgid — and decodes every structured-data element into its own nested JSON object keyed by SD-ID, so [exampleSDID@32473 iut="3" eventSource="App"] becomes {"exampleSDID@32473":{"iut":"3","eventSource":"App"}} instead of staying an unparsed bracket string. In both formats, the leading <PRI> number is decomposed into its facility (PRI >> 3) and severity (PRI & 7) components, with the option to render them as their standard names (auth/critical) instead of raw numbers so the output is self-explanatory without a lookup table.
Auto-detect distinguishes RFC 3164 from RFC 5424 per line by checking for the version token that RFC 5424 always includes right after the PRI, so a mixed export from a fleet of devices at different firmware versions converts correctly in a single pass without manual pre-splitting. Timestamps can be rendered as ISO 8601 UTC for sorting and cross-host correlation, kept as the raw syslog string, or converted to Unix milliseconds for time-series tooling. Output can be a pretty-printed JSON array for reading, a compact array to save space, or JSONL (one record per line, with a matching file extension on download) for streaming into Logstash, a Kafka topic, or a script that reads line by line. Nothing leaves your browser: parsing, priority decoding and structured-data extraction all run locally.