-
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.
Browse files
Browse the repository at this point in the history
[로그] ELK 도입
- Loading branch information
Showing
8 changed files
with
120 additions
and
3 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
## Default Kibana configuration from Kibana base image. | ||
## https://github.com/elastic/kibana/blob/master/src/dev/build/tasks/os_packages/docker_generator/templates/kibana_yml.template.ts | ||
# | ||
server.name: kibana | ||
server.host: "0.0.0.0" | ||
server.shutdownTimeout: "5s" | ||
elasticsearch.hosts: [ "http://elasticsearch:9200" ] | ||
monitoring.ui.container.elasticsearch.enabled: true | ||
|
||
## X-Pack security credentials | ||
# | ||
elasticsearch.username: kibana_system | ||
elasticsearch.password: NDwqpPLYFycZkaZOWrWX |
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,9 @@ | ||
--- | ||
http.host: "0.0.0.0" | ||
xpack.monitoring.elasticsearch.hosts: [ "http://elasticsearch:9200" ] | ||
|
||
## X-Pack security credentials | ||
# | ||
xpack.monitoring.enabled: true | ||
xpack.monitoring.elasticsearch.username: elastic | ||
xpack.monitoring.elasticsearch.password: LhgKhY3ii22buWAiOMas |
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,17 @@ | ||
input { | ||
tcp { | ||
port => 5000 | ||
codec => json_lines | ||
} | ||
} | ||
|
||
output { | ||
stdout{} | ||
elasticsearch { | ||
# TODO 각자의 서버에 맞게 IP 변경 | ||
hosts => "elasticsearch:9200" | ||
user => "elastic" | ||
password => "LhgKhY3ii22buWAiOMas" | ||
index => "logstash-%{+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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<configuration scan="true" scanPeriod="30 seconds"> | ||
|
||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder> | ||
<pattern>[%d{yyyy-MM-dd HH:mm:ss}:%-4relative] [%thread] %highlight(%-5level) %boldGreen([%C.%M:%boldRed(%L)]) - %boldYellow(%msg%n)</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<appender name="LOGSTASH" class="net.logstash.logback.appender.LogstashTcpSocketAppender"> | ||
<destination>localhost:5000</destination> | ||
<encoder class="net.logstash.logback.encoder.LogstashEncoder"> | ||
</encoder> | ||
</appender> | ||
|
||
|
||
<root level="INFO"> | ||
<appender-ref ref="STDOUT"/> | ||
<appender-ref ref="LOGSTASH"/> | ||
</root> | ||
</configuration> | ||
|