Docker Build Elk javaweb Application Log Collection Storage Analysis System

Source: Internet
Author: User
Tags logstash log4j

1. Start Elasticsearchdocker run-d--name myes-p 9200:9200 elasticsearch:2.32. Start Kibanadocker run--name mykibana-e ELASTICSE Arch_url=http://118.184.66.215:9200-p 5601:5601-d kibana:4.53.logstash configuration file vim/etc/logstash/logstash.conf input { log4j {mode = "Server" host = "0.0.0.0" port = 3456type = "log4j"}}output {elasticsearch {hosts = ["118 .184.66.215 "]}}4. Start Logstashdocker run-d-V" $PWD ":/etc/logstash-p 3456:3456 logstash:2.3 logstash-f/etc/logstash/log Stash.conf5.web application log4j Log tcp output Log4j.rootlogger = Debug,tcp log4j.appender.tcp= org.apache.log4j.net.socketappenderlog4j.appender.tcp.port=3456log4j.appender.tcp.remotehost= 118.184.66.215log4j.appender.tcp.reconnectiondelay=10000log4j.appender.tcp.application=job

Docker Build Elk javaweb Application Log Collection Storage Analytics System

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.