小编gwe*_*ang的帖子

Elasticsearch术语过滤器引发"过滤器不支持[mediatest]"

我的查询是这样的:

{
  "query": {
    "filtered": {
      "filter": {
        "bool": {
          "must": [
            {
              "term": {
                "online": 1
              }
            },
            {
              "terms": {
                "mediaType": "flash"
              }
            }
          ]
        }
      }
    }
  }
}
Run Code Online (Sandbox Code Playgroud)

它引发了一个QueryParsingException [[comos_v2] [terms]过滤器不支持[mediaType]],其中"mediaType"字段在映射中确实不存在.我的问题是为什么术语过滤器不会引发异常?

dsl json elasticsearch

12
推荐指数
1
解决办法
1万
查看次数

logrotate dateformat似乎不支持%H:%M:%S

logringate我比较新.当配置到属性"dateformat"时,似乎logrotate不支持strftime"%H".这是配置:

{
    daily
    rotate  2
    size 3M
    missingok
    notifempty
    dateext
    dateformat -%Y%m%d_%H:%M:%S
    ...
}
Run Code Online (Sandbox Code Playgroud)

旋转的文件格式看起来像:uwsgi_dev.log-20150630_%H:%M:%S,但我想要精确的"小时分和秒".

谢谢

logrotate date-format

12
推荐指数
1
解决办法
2万
查看次数

无法部署最新的rabbitmq?

我安装了erlang(erlang-20.3.7-1.el7.centos.x86_64.rpm),安装了rabbimq(rabbitmq-server-3.7.6).当我检查节点状态时,rabbitmqctl收到了粉碎消息.我丢了什么东西?很多赞美!


=INFO REPORT==== 20-Jun-2018::11:11:00.813218 ===
    application: logger
    exited: {{shutdown,
                 {failed_to_start_child,'Elixir.Logger.ErrorHandler',noproc}},
             {'Elixir.Logger.App',start,[normal,[]]}}
    type: temporary
Could not start application logger: Logger.App.start(:normal, []) returned an error: shutdown: failed to start child: Logger.ErrorHandler
    ** (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Run Code Online (Sandbox Code Playgroud)

erlang rabbitmq

6
推荐指数
1
解决办法
2600
查看次数

标签 统计

date-format ×1

dsl ×1

elasticsearch ×1

erlang ×1

json ×1

logrotate ×1

rabbitmq ×1