
Security News
Feross on TBPN: Socket's Series C and the State of Software Supply Chain Security
Feross Aboukhadijeh joins TBPN to discuss Socket's $60M Series C, 500%+ ARR growth, AI's impact on open source, and the rise in supply chain attacks.
github.com/surajthakur/logspout
Advanced tools
A Docker LogSpout image to stream logs from your containers to LogDNA.
The following variables can be used to tune LogSpout for specific use cases.
Note: More information can be found here.
logs.logdna.com/logs/ingestNote: Logging the LogSpout Container is recommended to keep track of HTTP Request Errors or Exceptions.
milliseconds), Optional
seconds) for requests made by this HTTP Client, Optional
Docker API and restarting, Optional
time.ParseDuration for valid format as recommended here.mb) of batches to ship to LogDNA, Optional
Create and run container named logdna from this image using CLI:
sudo docker run --name="logdna" --restart=always \
-d -v=/var/run/docker.sock:/var/run/docker.sock \
-e LOGDNA_KEY="<LogDNA Ingestion Key>" \
logdna/logspout:latest
Append the following to your Docker Cloud stackfile:
logdna:
autoredeploy: true
deployment_strategy: every_node
environment:
- LOGDNA_KEY="<LogDNA Ingestion Key>"
- TAGS='{{.Container.Config.Hostname}}'
image: 'logdna/logspout:latest'
restart: always
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
Modify your ECS Cloud Configuration file to have LogDNA Service as described below:
services:
logdna:
environment:
- LOGDNA_KEY="<LogDNA Ingestion Key>"
- TAGS='{{ if .Container.Config.Labels }}{{index .Container.Config.Labels "com.amazonaws.ecs.task-definition-family"}}:{{index .Container.Config.Labels "com.amazonaws.ecs.container-name"}}{{ else }}{{.ContainerName}}{{ end }}'
image: logdna/logspout:latest
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
deploy:
mode: global
Modify your Rancher Compose Stackfile to have LogDNA Service as described below:
version: '2'
services:
logdna:
image: logdna/logspout:latest
environment:
LOGDNA_KEY="<LogDNA Ingestion Key>"
restart: always
labels:
io.rancher.container.hostname_override: container_name
io.rancher.container.pull_image: always
io.rancher.os.scope: system
volumes:
- /var/run/docker.sock:/tmp/docker.sock
Modify your Docker Swarm Compose file to have LogDNA Service as described below:
version: "3"
networks:
logging:
services:
logdna:
image: logdna/logspout:latest
networks:
- logging
volumes:
- /etc/hostname:/etc/host_hostname:ro
- /var/run/docker.sock:/var/run/docker.sock
environment:
- LOGDNA_KEY="<LogDNA Ingestion Key>"
deploy:
mode: global
Do not forget to add -u root (in CLI) or user: root (in YAML) in case of having permission issues.
Contributions are always welcome. See the contributing guide to learn how you can help. Build instructions for the agent are also in the guide.
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Feross Aboukhadijeh joins TBPN to discuss Socket's $60M Series C, 500%+ ARR growth, AI's impact on open source, and the rise in supply chain attacks.

Security News
OSV withdrew 157 OSV malware reports after automated false positives incorrectly flagged trusted npm and PyPI packages, sending bad records into tools that rely on OSV data.

Research
/Security News
TrapDoor crypto stealer hits 36 malicious packages across npm, PyPI, and Crates.io, targeting crypto, DeFi, AI, and security developers.