This file contains hidden or 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
| # 키바나 설정파일 | |
| server.name: kibana | |
| server.host: "0" | |
| # Elasticsearch 서버 정보 | |
| elasticsearch.hosts: http://elasticsearch:9200 | |
| elasticsearch.username: "elastic" | |
| elasticsearch.password: "MyPw123" |
This file contains hidden or 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
| http.host: "0.0.0.0" | |
| xpack.monitoring.elasticsearch.hosts: [ "http://elasticsearch:9200" ] | |
| xpack.monitoring.enabled: true | |
| xpack.monitoring.elasticsearch.username: elastic | |
| xpack.monitoring.elasticsearch.password: MyPw123 |
This file contains hidden or 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
| input { | |
| tcp { | |
| port => 5000 | |
| codec => json_lines | |
| } | |
| } | |
| output { | |
| elasticsearch { | |
| hosts => "elasticsearch:9200" |
This file contains hidden or 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
| package org.exmaple; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import org.springframework.web.bind.annotation.*; | |
| @RestController | |
| @RequestMapping("/api/v1") | |
| public class SampleController { |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <configuration> | |
| <property name="LOGS_ABSOLUTE_PATH" value="./logs" /> | |
| <include resource="org/springframework/boot/logging/logback/defaults.xml"/> | |
| <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> | |
| <encoder> | |
| <pattern>${CONSOLE_LOG_PATTERN}</pattern> | |
| </encoder> | |
| </appender> |
This file contains hidden or 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
| package org.exmaple; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import org.springframework.web.bind.annotation.*; | |
| import static net.logstash.logback.marker.Markers.append; | |
| @RestController | |
| @RequestMapping("/api/v1") |
This file contains hidden or 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
| - module: nginx | |
| # Access logs | |
| access: | |
| enabled: true | |
| var.paths: [/path/to/access.log] | |
| # Error logs | |
| error: | |
| enabled: true | |
| var.paths: [/path/to/error.log] |