Home  >  Q&A  >  body text

Logback 与 Redis 和 ELK,搭建好了之后,Logback并未将日志写入Redis中,也没有出现异常

logback配置

<appender name="LOGSTASH" class="com.cwbase.logback.RedisAppender">
    <source>gridsys</source>
    <type>dev</type>
    <host>127.0.0.1</host>
    <key>logstash</key>
    <tags>dev</tags>
    <mdc>true</mdc>
    <location>true</location>
    <callerStackIndex>0</callerStackIndex>
</appender>

无数据写入Redis,ELK运行时正常的,项目连接Redis未出现异常,求大神帮忙

曾经蜡笔没有小新曾经蜡笔没有小新2703 days ago933

reply all(3)I'll reply

  • 仅有的幸福

    仅有的幸福2017-04-26 09:03:27

    Logback will not be written directly into redis. First configure logstash and configure the writing of redis data in its output

    reply
    0
  • 迷茫

    迷茫2017-04-26 09:03:27

    Ask the poster, can logback be output directly to the redis queue?

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-04-26 09:03:27

    I also encountered this problem, has the poster solved it?

    reply
    0
  • Cancelreply