logger_json v3.0.2 LoggerJSON.Plug.MetadataFormatters.ELK

Formats connection into Logger metadata:

  • connection.type - type of connection (Sent or Chunked);
  • connection.method - HTTP request method;
  • connection.request_path - HTTP request path;
  • connection.request_id - value of X-Request-ID response header (see Plug.RequestId);
  • connection.status - HTTP status code sent to a client;
  • client.user_agent - value of User-Agent header;
  • client.ip' - value ofX-Forwarded-Forheader if present, otherwise - remote IP of a connected client; *client.api_version' - version of API that was requested by a client;

    • node.hostname - system hostname;
    • node.pid - Erlang VM process identifier;
    • phoenix.controller - Phoenix controller that processed the request;
    • phoenix.action - Phoenix action that processed the request;
    • latency_μs - time in microseconds taken to process the request.