Skip to content

Commit

Permalink
bump to 0.4 - include local address in logline
Browse files Browse the repository at this point in the history
  • Loading branch information
Shikhar Bhushan committed Dec 18, 2015
1 parent fbc6315 commit 01ed4b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 01ed4b9

Please sign in to comment.