log4j2输出日志到es

log4j2elastic



    net.inemar.utility
    log4j2elastic
    3.1.0

log4j2配置



    
        
            
        
        
    
    
        
            
            
        
    

配置环境变量

elastic_local = native://192.168.99.100:9300
elastic_cluster = elasticsearch
service = demo-service

kibana查看

默认logstash-*查看

docs

  • utility-log4j2-elasticsearch

你可能感兴趣的:(springboot,elasticsearch,log4j2)