如何配置Elasticsearch自己的日志记录?

时间:2018-09-21 11:07:50

标签: elasticsearch logging

我将所有系统/应用程序日志集中在Elasticsearch中,而最多产的来源之一是Elasticsearch本身。

我以为只能将所有级别更改为/etc/elasticsearch/log4j2.properties(例如warn),才能将logger.action.level = warn的详细程度降低为警告,但是我继续在下面获取日志每个查询。

我在哪里可以禁用这种操作日志?

{
  "type": "response",
  "@timestamp": "2018-09-21T10:45:35Z",
  "tags": [],
  "pid": 30232,
  "method": "post",
  "statusCode": 200,
  "req": {
    "url": "/logtrail/search",
    "method": "post",
    "headers": {
      "host": "10.200.0.1:5601",
      "connection": "keep-alive",
      "content-length": "587",
      "accept": "application/json, text/plain, */*",
      "origin": "http://10.200.0.1:5601",
      "kbn-version": "6.2.4",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",
      "dnt": "1",
      "content-type": "application/json;charset=UTF-8",
      "referer": "http://10.200.0.1:5601/app/logtrail",
      "accept-encoding": "gzip, deflate",
      "accept-language": "fr-FR,fr;q=0.9,en-XA;q=0.8,en;q=0.7,en-US;q=0.6"
    },
    "remoteAddress": "10.200.0.2",
    "userAgent": "10.200.0.2",
    "referer": "http://10.200.0.1:5601/app/logtrail"
  },
  "res": {
    "statusCode": 200,
    "responseTime": 18,
    "contentLength": 9
  },
  "message": "POST /logtrail/search 200 18ms - 9.0B"
}

0 个答案:

没有答案