Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not following the standard log format #17

Open
breezewish opened this issue Nov 30, 2021 · 0 comments
Open

Not following the standard log format #17

breezewish opened this issue Nov 30, 2021 · 0 comments
Assignees
Labels
type/bug Something isn't working
Milestone

Comments

@breezewish
Copy link
Member

breezewish commented Nov 30, 2021

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 breezewish added the type/bug Something isn't working label Nov 30, 2021
@breezewish breezewish added this to the GA milestone Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants