Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docker-elk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hiep Nguyen
docker-elk
Commits
5bb1f9b7
Commit
5bb1f9b7
authored
Jun 20, 2017
by
Daniel Macedo
Committed by
Antoine Cotten
Jun 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Logspout extension (#133)
parent
a059efcc
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
207 additions
and
81 deletions
+207
-81
README.md
README.md
+130
-81
README.md
extensions/README.md
+1
-0
Dockerfile
extensions/logspout/Dockerfile
+5
-0
README.md
extensions/logspout/README.md
+28
-0
build.sh
extensions/logspout/build.sh
+18
-0
logspout-compose.yml
extensions/logspout/logspout-compose.yml
+16
-0
modules.go
extensions/logspout/modules.go
+9
-0
No files found.
README.md
View file @
5bb1f9b7
This diff is collapsed.
Click to expand it.
extensions/README.md
0 → 100644
View file @
5bb1f9b7
Third-party extensions that enable extra integrations with the ELK stack.
extensions/logspout/Dockerfile
0 → 100644
View file @
5bb1f9b7
# uses ONBUILD instructions described here:
# https://github.com/gliderlabs/logspout/tree/master/custom
FROM
gliderlabs/logspout:master
ENV
SYSLOG_FORMAT rfc3164
extensions/logspout/README.md
0 → 100644
View file @
5bb1f9b7
# Logspout extension
Logspout collects all Docker logs using the Docker logs API, and forwards them to Logstash without any additional
configuration.
## Usage
If you want to include the Logspout extension, ensure the additional
`logspout-compose.yml`
file is included in the
command line parameters:
```
bash
$
docker-compose
-f
docker-compose.yml
-f
logspout-compose.yml up
```
In your Logstash pipeline configuration, enable the
`udp`
input and set the input codec to
`json`
:
```
input {
udp {
port => 5000
codec => json
}
}
```
## Documentation
https://github.com/looplab/logspout-logstash
extensions/logspout/build.sh
0 → 100755
View file @
5bb1f9b7
#!/bin/sh
# unmodified from:
# https://github.com/gliderlabs/logspout/blob/67ee3831cbd0594361bb3381380c65bdbeb3c20f/custom/build.sh
set
-e
apk add
--update
go git mercurial build-base
mkdir
-p
/go/src/github.com/gliderlabs
cp
-r
/src /go/src/github.com/gliderlabs/logspout
cd
/go/src/github.com/gliderlabs/logspout
export
GOPATH
=
/go
go get
go build
-ldflags
"-X main.Version=
$1
"
-o
/bin/logspout
apk del go git mercurial build-base
rm
-rf
/go /var/cache/apk/
*
/root/.glide
# backwards compatibility
ln
-fs
/tmp/docker.sock /var/run/docker.sock
extensions/logspout/logspout-compose.yml
0 → 100644
View file @
5bb1f9b7
version
:
'
2'
services
:
logspout
:
build
:
context
:
extensions/logspout
volumes
:
-
/var/run/docker.sock:/var/run/docker.sock:ro
environment
:
ROUTE_URIS
:
logstash://logstash:5000
LOGSTASH_TAGS
:
docker-elk
networks
:
-
elk
depends_on
:
-
logstash
restart
:
on-failure
extensions/logspout/modules.go
0 → 100644
View file @
5bb1f9b7
package
main
// installs the Logstash adapter for Logspout, and required dependencies
// https://github.com/looplab/logspout-logstash
import
(
_
"github.com/looplab/logspout-logstash"
_
"github.com/gliderlabs/logspout/transports/udp"
_
"github.com/gliderlabs/logspout/transports/tcp"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment