Skip to content

Allow to stream webserver.log to docker output - #2063

Draft
yubiuser wants to merge 1 commit into
developmentfrom
stream/weblog
Draft

yubiuser wants to merge 1 commit into
developmentfrom
stream/weblog

Conversation

@yubiuser

Copy link
Copy Markdown
Member

Idea inspired by pi-hole/FTL#2958.
This would allow to stream the output of webserver.log to the docker log. Currently it's not very useful as the webserver.log output is sparse and uses a different format than FTL.log. But I see potential if more things get moved from FTL.log into webserver.log plus json logging.

Logging is controlled by env TAIL_WEB_LOG which defaults to true.


pihole  | 2026-07-27 09:50:22.837 UTC [55M] INFO:    [✓] FTLCONF_webserver_api_password is used
pihole  | 2026-07-27 09:50:22.837 UTC [55M] INFO: Wrote config file:
pihole  | [2026-07-27 09:50:22.866 UTC 55] Initializing HTTP server on ports "80o,443os,[::]:80o,[::]:443os"
pihole  | 2026-07-27 09:50:22.837 UTC [55M] INFO:  - 169 total entries
pihole  | 2026-07-27 09:50:22.837 UTC [55M] INFO:  - 164 entries are default
pihole  | 2026-07-27 09:50:22.837 UTC [55M] INFO:  - 5 entries are modified

@yubiuser
yubiuser requested a review from a team as a code owner July 27, 2026 09:55
@yubiuser
yubiuser marked this pull request as draft July 27, 2026 09:56
Signed-off-by: yubiuser <github@yubiuser.dev>
@PromoFaux

Copy link
Copy Markdown
Member

Logging is controlled by env TAIL_WEB_LOG which defaults to true.

If it is "ugly" by default, maybe we make it opt-in rather than opt-out?

@darkexplosiveqwx

Copy link
Copy Markdown
Contributor

Logging is controlled by env TAIL_WEB_LOG which defaults to true.

If it is "ugly" by default, maybe we make it opt-in rather than opt-out?

Why would you describe it as "ugly"?
The format of the log lines is no longer different from FTL.log (compared to whats shown in the PR body) since
pi-hole/FTL#2958.

@PromoFaux

Copy link
Copy Markdown
Member

Ah, I was not aware of this change and was going by the description of this PR.

If there is no disparity in the format then that changes things

Base automatically changed from development to master October 30, 2026 23:45
@PromoFaux
PromoFaux changed the base branch from master to development October 30, 2026 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants