LogShaper

Syslog to JSON converter

No network access · nothing leaves your browser Support LogShaper
Sanitization Rules
Quick samples:
Ctrl/⌘ + Enter to parse
No data processed yet.
/* Click "Parse & Normalize Schema" to process raw logs */

Syslog to JSON, right in your browser

Paste lines from /var/log/syslog, /var/log/messages or auth.log and LogShaper splits each one into its parts. It's handy for reviewing SSH logins, cron jobs or kernel messages, or for loading them into a spreadsheet or database.

How to use it

  1. Paste your logs into the box above. An example is already loaded so you can see the result.
  2. Choose what to redact: IP addresses, keys and tokens, and emails are all on by default.
  3. Click Parse & Normalize Schema, then copy or download the JSON, the JSON Schema, or a CSV from the Data Grid.

What you get

Example

Input
Nov 11 08:00:01 web-01 CRON[4120]: (root) CMD (/usr/local/bin/backup.sh)
Nov 11 08:02:17 web-01 sshd[2231]: Failed password for invalid user admin from 203.0.113.50 port 40112 ssh2
Nov 11 08:02:19 web-01 sshd[2231]: Accepted publickey for deploy from 198.51.100.7 port 51022 ssh2
Nov 11 08:05:43 db-02 kernel: Out of memory: Killed process 9921 (postgres)
Output (first 2 of 4 records)
[
  {
    "timestamp": "Nov 11 08:00:01",
    "host": "web-01",
    "program": "CRON",
    "pid": 4120,
    "message": "(root) CMD (/usr/local/bin/backup.sh)"
  },
  {
    "timestamp": "Nov 11 08:02:17",
    "host": "web-01",
    "program": "sshd",
    "pid": 2231,
    "message": "Failed password for invalid user admin from [IP_REDACTED] port 40112 ssh2"
  }
]

Questions

Which syslog format is supported?

The classic BSD-style format (RFC 3164) that most Linux distributions write by default. RFC 5424 lines with structured data aren't split into fields yet.

Can I mix syslog with other log types?

Yes. Each line is detected separately, so syslog, JSON and app log lines can be pasted together.

How do I export the results?

Use the download button: JSON from the Formatted JSON tab, or CSV from the Data Grid tab.

Is my data uploaded anywhere?

No. Parsing, redaction and schema generation all run in your browser tab. The page's security policy blocks every network request, so pasted logs can't be sent anywhere, and nothing is saved when you close the tab.

More LogShaper tools

Nginx log to JSONAccess logs to structured JSON fieldsRedact secrets from logsScrub API keys, tokens, emails and IPsJSON to JSON SchemaInfer a schema from sample JSONParse stack tracesJava, Python and Node.js traces to JSONlogfmt to JSONkey=value logs to typed JSON