为什么我在Elasticsearch中没有获取跟踪日志?

时间:2018-12-12 06:39:41

标签: elasticsearch

嘿,有人为什么能帮我解决我为什么没有获得运输级别跟踪日志的问题?这在我当前的/ _cluster / settings

{ 
  "persistent": { 
    "xpack": { 
      "monitoring": { 
        "collection": { 
          "enabled": "true" 
        } 
      } 
    }, 
    "logger": { 
      "index": { 
        "indexing": { 
          "slowlog": "WARN" 
        }, 
        "search": { 
          "slowlog": "WARN" 
        } 
      } 
    } 
  }, 
  "transient": { 
    "cluster": { 
      "routing": { 
        "allocation": { 
          "enable": "all" 
        } 
      }, 
      "service": { 
        "slow_task_logging_threshold": "30s" 
      } 
    }, 
    "indices": { 
      "recovery": { 
        "max_bytes_per_sec": "500mb" 
      } 
    }, 
    "logger": { 
      "_root": "WARN", 
      "index": { 
        "indexing": { 
          "slowlog": "WARN" 
        }, 
        "search": { 
          "slowlog": "WARN" 
        } 
      }, 
      "org": { 
        "elasticsearch": { 
          "TransportService": { 
            "tracer": "TRACE" 
          }, 
          "transport": "TRACE" 
        } 
      } 
    } 
  } 
}

我正在40个节点的集群上运行6.5.2的Elasticsearch版本。 任何帮助表示赞赏,谢谢。 我尝试过动态更改设置。据我的理解,它不应该为传输级别提供跟踪日志并为其他所有警告日志吗?

1 个答案:

答案 0 :(得分:1)

对于运输,您可能需要指定包含字段

ionic cordova build android

对于搜索/索引WARN日志,请指定WARN时间

$today = \Carbon\Carbon::now()->format('Y-m-d');
$yesterday = \Carbon\Carbon::yesterday()->format('Y-m-d');
$any_day = \Carbon\Carbon::createFromFormat('d/m/Y', '9/12/2018')->format('Y-m-d'); //used your example date
$messages_today = Message::where('created_at', 'like', "{$today}%")->orderBy('created_at', 'desc')->get();
$messages_yesterday = Message::where('created_at', 'like', "{$yesterday}%")->orderBy('created_at', 'desc')->get();
$messages_any_day = Message::where('created_at', 'like', "{$any_day}%")->orderBy('created_at', 'desc')->get();