全部模板

开发

Read InfluxDB Container Logs

Read the latest 1,000 lines of an InfluxDB container through the Docker Engine API.

Read InfluxDB Container Logs 在 Open Flow 中的工作流截图Read InfluxDB Container Logs 在 Open Flow 中的工作流截图

Return the most recent 1,000 lines of container logs.

Setup

Provide a Docker Engine v1.44 endpoint behind an authenticated HTTPS gateway that permits container inspection and log reads. Set its URL and expected server domain in Validate server and request, and set the gateway hostname in the HTTP allowlist of Read and decode Docker logs. Bind INSPECTION_WEBHOOK_AUTH to the incoming Authorization header and DOCKER_GATEWAY_TOKEN to the gateway token.

Use

POST server_domain, domain and command set to container_log. The workflow reads stdout and stderr for the container named domain followed by _influxdb, with tail 1000. Logs may contain secrets and personal data; restrict access to the endpoint and execution history. Docker logging driver must support reading logs.

In n8n

In n8n set the same server domain and gateway URL and connect Header Auth credentials on the webhook and Docker HTTP nodes.

Inspiration & credits

Extract the log command; use the Docker Engine API and decode its non-TTY stream framing.

Adapted from Docker InfluxDB API in Zie619/n8n-workflows. Attribution: Zie619 / n8n-workflows.

The collection’s MIT notice is pinned at a later revision. This is the collection notice at that revision; it does not establish a separate original template author’s license. Our changes are listed above; see repository licensing.

MIT License

Copyright (c) 2025 Zie619

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.