ng-monitoring icon indicating copy to clipboard operation
ng-monitoring copied to clipboard

Not following the standard log format

Open breezewish opened this issue 3 years ago • 0 comments

Example:

./ng-monitoring-server
2021-11-30 21:10:22.028505 I | Failed to initialize config, err: unexpected empty pd endpoints, please specify at least one, e.g. --pd.endpoints "[127.0.0.1:2379]"

Some outputted log format is not following the standard log format as well, like:

docdb.log:

badger 2021/11/30 21:10:37 INFO: All 0 tables opened in 0s
badger 2021/11/30 21:10:37 INFO: Discard stats nextEmptySlot: 0
badger 2021/11/30 21:10:37 INFO: Set nextTxnTs to 0
badger 2021/11/30 21:12:29 INFO: All 0 tables opened in 0s
badger 2021/11/30 21:12:29 INFO: Discard stats nextEmptySlot: 0
badger 2021/11/30 21:12:29 INFO: Set nextTxnTs to 2

service.log:

[GIN] 2021/11/30 - 21:13:38 | 200 |     502.265µs |       127.0.0.1 | GET      "/config"
[GIN] 2021/11/30 - 21:13:38 | 200 |     611.781µs |       127.0.0.1 | GET      "/continuous_profiling/group_profiles?begin_time=1638276217&end_time=1638278017"
[GIN] 2021/11/30 - 21:13:39 | 200 |      54.004µs |       127.0.0.1 | GET      "/continuous_profiling/estimate_size"
[GIN] 2021/11/30 - 21:13:39 | 200 |      49.535µs |       127.0.0.1 | GET      "/config"

tsdb.log:

2021-11-30T13:10:36.835Z        info    /Users/pingcap/gopkg/pkg/mod/github.com/!victoria!metrics/[email protected]/lib/logger/flag.go:12       build version:
2021-11-30T13:10:36.837Z        info    /Users/pingcap/gopkg/pkg/mod/github.com/!victoria!metrics/[email protected]/lib/logger/flag.go:13       command line flags
2021-11-30T13:10:36.837Z        info    /Users/pingcap/gopkg/pkg/mod/github.com/!victoria!metrics/[email protected]/lib/logger/flag.go:28       flag "alsologtostderr"="false" (is_set=false)
2021-11-30T13:10:36.837Z        info    /Users/pingcap/gopkg/pkg/mod/github.com/!victoria!metrics/[email protected]/lib/logger/flag.go:28       flag "bigMergeConcurrency"="0" (is_set=false)
2021-11-30T13:10:36.837Z        info    /Users/pingcap/gopkg/pkg/mod/github.com/!victoria!metrics/[email protected]/lib/logger/flag.go:28       flag "csvTrimTimestamp"="1ms" (is_set=false)
2021-11-30T13:10:36.837Z        info    /Users/pingcap/gopkg/pkg/mod/github.com/!victoria!metrics/[email protected]/lib/logger/flag.go:28       flag "deleteAuthKey"="secret" (is_set=false)
2021-11-30T13:10:36.837Z        info    /Users/pingcap/gopkg/pkg/mod/github.com/!victoria!metrics/[email protected]/lib/logger/flag.go:28       flag "denyQueriesOutsideRetention"="false" (is_set=false)
2021-11-30T13:10:36.837Z        info    /Users/pingcap/gopkg/pkg/mod/github.com/!victoria!metrics/[email protected]/lib/logger/flag.go:28       flag "enableTCP6"="false" (is_set=false)
2021-11-30T13:10:36.837Z        info    /Users/pingcap/gopkg/pkg/mod/github.com/!victoria!metrics/[email protected]/lib/logger/flag.go:28       flag "finalMergeDelay"="0s" (is_set=false)
2021-11-30T13:10:36.837Z        info    /Users/pingcap/gopkg/pkg/mod/github.com/!victoria!metrics/[email protected]/lib/logger/flag.go:28       flag "forceFlushAuthKey"="secret" (is_set=false)
2021-11-30T13:10:36.837Z        info    /Users/pingcap/gopkg/pkg/mod/github.com/!victoria!metrics/[email protected]/lib/logger/flag.go:28       flag "forceMergeAuthKey"="secret" (is_set=false)
2021-11-30T13:10:36.837Z        info    /Users/pingcap/gopkg/pkg/mod/github.com/!victoria!metrics/[email protected]/lib/logger/flag.go:28       flag "fs.disableMmap"="false" (is_set=false)
2021-11-30T13:10:36.837Z        info    /Users/pingcap/gopkg/pkg/mod/github.com/!victoria!metrics/[email protected]/lib/logger/flag.go:28       flag "graphiteListenAddr"="" (is_set=false)

This makes them incompatible with all log collection facilities we have, even including TiDB Dashboard.

breezewish avatar Nov 30 '21 13:11 breezewish