yugabyte / yugabyte-db

YugabyteDB - the cloud native distributed SQL database for mission-critical applications.
https://www.yugabyte.com
Other
8.99k stars 1.07k forks source link

Log format reconfiguration for tserver/tmaster for underlying aggregation tool #7931

Open Tasneem9879 opened 3 years ago

Tasneem9879 commented 3 years ago

Jira Link: DB-1758 Description:

This is a feature request for the ability to improve logging of tserver/tmaster and other surrounding logs of the underlying services operating a YB cluster.

Problem solved:

The use-case for this was that they wanted to send their logs into Azure's log collection (log analytics) agent. In order for this to work there are a couple of requirements.

Something with macros in a formatter like:

“%D/%M/%Y %h:%m:%s.%l [%E] %X” which will be formatted as “02/04/2021 03:35:14.32 [E0440] could not format log properly”

Reference ticket: https://yugabyte.zendesk.com/agent/tickets/1054

dotyjim-work commented 3 years ago

I would like to suggest that we include the timezone in the timestamp.