-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd3c321
commit 3857d3c
Showing
7 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM sebp/elk | ||
|
||
# overwrite existing file | ||
ADD logback.conf /etc/logstash/conf.d/01-gallerymine.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
input { | ||
file { | ||
path => "/mnt/app-logs/*.log" | ||
codec => "json" | ||
type => "logback" | ||
} | ||
} | ||
|
||
output { | ||
if [type]=="logback" { | ||
elasticsearch { | ||
hosts => [ "localhost:9200" ] | ||
index => "logback-%{+YYYY.MM.dd}" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
echo "From https://elk-docker.readthedocs.io/" | ||
echo "http://www.baeldung.com/java-application-logs-to-elastic-stack" | ||
echo "Kibana local: http://localhost:5601/app/kibana#/home/tutorial_directory/logging?_g=()" | ||
sudo docker pull sebp/elk | ||
export MAX_MAP_COUNT=262144 | ||
#sudo docker run -p 5601:5601 -p 9200:9200 -p 5044:5044 -it --name elk sebp/elk | ||
docker build . -t elkgallerymine | ||
sudo docker-compose up elk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
# MAX_MAP_COUNT = 262144 | ||
export MAX_MAP_COUNT = 262144 | ||
sudo docker run -p 5601:5601 -p 9200:9200 -p 5044:5044 -it --name elk sebp/elk | ||
sudo docker start elk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters