diff --git a/README.md b/README.md index e8fdbb6..f724c48 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ The `es-restlog` plugin hooks into the Elasticsearch REST request processing cha Sample log line: ``` -1449700736656 /10.96.244.81:58622 GET /twitter/tweet/_search {"query":{"term":{"user":"kimchy"}}} +1449700736656 /10.96.244.81:9200 /10.96.244.81:58622 GET /twitter/tweet/_search {"query":{"term":{"user":"kimchy"}}} ``` Note that Elasticsearch provides the 'slowlog' mechanism for capturing index or search requests, and you can set the threshold to 0 to log all requests. This approach has some limitations: diff --git a/project/Build.scala b/project/Build.scala index 76c9384..a2b3d3c 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -14,7 +14,7 @@ object Build extends sbt.Build { base = file(".") ).settings( organization := "es-restlog", - version := "0.3", + version := "0.4", esVersion := "2.1.1", description := "REST request logging for Elasticsearch", autoScalaLibrary := false, diff --git a/src/main/java/com/etsy/elasticsearch/restlog/RestLoggerFilter.java b/src/main/java/com/etsy/elasticsearch/restlog/RestLoggerFilter.java index 05edb06..e9d8330 100644 --- a/src/main/java/com/etsy/elasticsearch/restlog/RestLoggerFilter.java +++ b/src/main/java/com/etsy/elasticsearch/restlog/RestLoggerFilter.java @@ -34,6 +34,7 @@ public void process(RestRequest restRequest, RestChannel restChannel, RestFilter log.info( joiner.join( System.currentTimeMillis(), + restRequest.getLocalAddress(), restRequest.getRemoteAddress(), restRequest.method(), restRequest.uri(),