patterns: common: extractors: - name: "syslog_header" regex: '^(\w{3} \d{2} \d{2}:\d{2}:\d{2}) (?P[^\s]+) (?P[^:]+):\s*(?P.*)$' fields: syslog_timestamp: "time:Jan 02 15:04:05" hostname: "string" process_info: "string" message_rest: "string" - name: "iso8601_timestamp" regex: '(?P\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?Z?)' fields: timestamp: "time:2006-01-02T15:04:05.000000Z" nginx: extractors: - name: "access_log" regex: '^(?P\S+)\s+\S+\s+(?P\S+)\s+\[(?P[^\]]+)\]\s+"(?P[^"]+)"\s+(?P\d+)\s+(?P\d+|-)' fields: client_ip: "string" remote_user: "string" timestamp_nginx: "string" request: "string" status_code: "int" bytes_sent: "int" my-app: extractors: - name: "app_log" regex: '^\[(?P\w+)\] id=(?P\d+) duration=(?P\d+)ms' fields: level: "string" request_id: "int" duration_ms: "int"