Project

General

Profile

Actions

Feature #5764

open

logging: add a format string for a more standard log format

Added by Jason Ish about 2 years ago. Updated almost 2 years ago.

Status:
In Review
Priority:
Normal
Assignee:
Target version:
Effort:
Difficulty:
Label:

Description

This refers to the application log, not Suricata event logging.

%S expands to a non-standard timestamp format like 18/12/2022 -- 18:27:31.

Straight RFC3339 is a little verbose: 2022-12-19T09:51:26.382713754-06:00, but its the basis for most default timestamps in logs these days.

Examples:
- Python: 2022-12-19 09:51:26,382
- Rust env_logger: 2017-11-09T02:12:24
- Rust tracing: 2022-12-19T15:53:57.204204Z
- Common Java default: 2017-04-20 20:25:42

My suggestion would be: 2017-04-20 20:25:42

This should use a new format code, ideally be the new default.

Actions #1

Updated by Jason Ish almost 2 years ago

  • Status changed from New to In Review
Actions

Also available in: Atom PDF