zoukankan      html  css  js  c++  java
  • logstash ArgumentError: comparison of String with 5 failed

    <pre name="code" class="html"><pre name="code" class="html">ArgumentError: comparison of String with 5 failed
                 >= at org/jruby/RubyComparable.java:155
                 >= at org/jruby/RubyString.java:1853
        output_func at (eval):145
       output_batch at /usr/local/logstash-2.3.4/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.4-java/lib/logstash/pipeline.rb:293
               each at org/jruby/RubyArray.java:1613
             inject at org/jruby/RubyEnumerable.java:852
       output_batch at /usr/local/logstash-2.3.4/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.4-java/lib/logstash/pipeline.rb:287
        worker_loop at /usr/local/logstash-2.3.4/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.4-java/lib/logstash/pipeline.rb:232
      start_workers at /usr/local/logstash-2.3.4/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.4-java/lib/logstash/pipeline.rb:201
    ok
    
    错误位置:
    output {
            if [response_time] >= 5  {
              zabbix {
                    zabbix_host => "[@metadata][zabbix_host]"
                    zabbix_key => "[@metadata][zabbix_key]"
            zabbix_server_host => "192.168.32.55"
            zabbix_server_port => "10051"
                    zabbix_value => "messager"
            }
    		
    意思是字符串和数值型比较 报错,可能原因是匹配失败
    
    日志内容差异:
    2016-09-22 18:55:00,282 INFO com.zjzc.common.utils.HttpUtil - 请求接口: https://www.zjcap.cn/pay/interface/querypayorder, 耗时=-86
    2016-09-22 18:55:00,282 INFO com.zjzc.common.utils.HttpUtil - 返回结果:retCode=0000,返回值: {"data":{"orderNo":"20160922155506472c4fd49e696254ce","cardNo":"622908583367379913","status":3},"enableModify":true,"retCode":"0000","retMsg":"查询订单成功!"}
    Sep 22, 2016 7:03:59 PM org.apache.catalina.core.StandardServer await
    INFO: A valid shutdown command was received via the shutdown port. Stopping the Server instance.
    Sep 22, 2016 7:03:59 PM org.apache.coyote.AbstractProtocol pause
    INFO: Pausing ProtocolHandler ["http-bio-8082"]
    Sep 22, 2016 7:04:00 PM org.apache.coyote.AbstractProtocol pause
    INFO: Pausing ProtocolHandler ["ajp-bio-8011"]
    Sep 22, 2016 7:04:00 PM org.apache.catalina.core.StandardService stopInternal
    INFO: Stopping service Catalina


    
    
    
                                        
    
  • 相关阅读:
    下载文件
    文件上传后台
    触发器
    存储过程
    火狐浏览器不能获取 event,解决js报错问题
    Oracle 数据库--一个用户同步的sql
    基于二进制的权限控制
    自定义jsp标签
    http,socket和websocket
    正向代理和反向代理
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13350230.html
Copyright © 2011-2022 走看看