Backend 파일 수정

ELK 설치

  1. git clone
git clone <https://github.com/deviantony/docker-elk.git>
  1. 환경파일 수정

id = elastic

pw = pasdsworld101

vi .env

Untitled

  1. docker-compose 파일을 수정
 vi docker-compose.yml

Untitled

  1. logstash.conf 수정

    input {
            beats {
                    port => 5044
            }
    
            tcp {
                    port => 50000
            }
    }
    
    filter {
            json {
                    source => "message"
            }
            mutate {
                    remove_field => ["@version","agent","ecs","host","input","log","tags","message","event"]
            }
    }
    
    ## Add your filters / logstash plugins configuration here
    
    output {
            elasticsearch {
                    index => "%{[fields][index_name]}"
                    hosts => "elasticsearch:9200"
                    user => "logstash_internal"
                    password => "${LOGSTASH_INTERNAL_PASSWORD}"
            }
    }