[GH-ISSUE #2017] Can we merge the multiple line log into just one? #1601

Closed
opened 2026-05-05 13:01:18 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @return2alfred on GitHub (Sep 29, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/2017

Dear @fatedier:

> Please have a look at this common log format below:
> # Sep 30 06:34:59 HOSTNAME frps[713]: 2020/09/30 06:34:59 #033[1;34m[I] [service.go:432] [a0fbd19ad1ff876f]  client login info: ip [xxx:xxx:xxx:xxx:7853] version [0.30.0] hostname [] os [windows] arch [amd64]#033[0m
> # Sep 30 06:34:59 HOSTNAME frps[713]: 2020/09/30 06:34:59 #033[1;33m[W] [service.go:334] register control error: token in login doesn't match token from configuration#033[0m
> # Sep 30 06:34:59 HOSTNAME frps[713]: 2020/09/30 06:34:59 #033[1;34m[D] [service.go:405] Accept new mux stream error: EOF#033[0m

The original log event gives the same time label, and if we can merge the 3 lines log into just one, we can make debug much more accurate.
And expecially for integration like fail2ban would be much easier, in terms of the log parse feature provided by such programs.

Would this be a good advise?
Thank you!

Originally created by @return2alfred on GitHub (Sep 29, 2020). Original GitHub issue: https://github.com/fatedier/frp/issues/2017 Dear @fatedier: ``` > Please have a look at this common log format below: > # Sep 30 06:34:59 HOSTNAME frps[713]: 2020/09/30 06:34:59 #033[1;34m[I] [service.go:432] [a0fbd19ad1ff876f] client login info: ip [xxx:xxx:xxx:xxx:7853] version [0.30.0] hostname [] os [windows] arch [amd64]#033[0m > # Sep 30 06:34:59 HOSTNAME frps[713]: 2020/09/30 06:34:59 #033[1;33m[W] [service.go:334] register control error: token in login doesn't match token from configuration#033[0m > # Sep 30 06:34:59 HOSTNAME frps[713]: 2020/09/30 06:34:59 #033[1;34m[D] [service.go:405] Accept new mux stream error: EOF#033[0m ``` The original log event gives the same time label, and if we can merge the 3 lines log into just one, we can make debug much more accurate. And expecially for integration like fail2ban would be much easier, in terms of the log parse feature provided by such programs. Would this be a good advise? Thank you!
gitea-mirror 2026-05-05 13:01:18 -06:00
Author
Owner

@fatedier commented on GitHub (Sep 30, 2020):

It's logged in different functions, we can't merge it into one.

You'd better not rely on logs.

<!-- gh-comment-id:701137919 --> @fatedier commented on GitHub (Sep 30, 2020): It's logged in different functions, we can't merge it into one. You'd better not rely on logs.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 15, 2020):

Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.

<!-- gh-comment-id:727288927 --> @github-actions[bot] commented on GitHub (Nov 15, 2020): Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#1601
No description provided.