Skip to content

Commit 84a11c4

Browse files
Daniel HiltgenJoao Fernandes
Daniel Hiltgen
authored and
Joao Fernandes
committed
Clean up auditing/logging
This refines our logging and auditing a bit to make things easier to search for within kibana (or similar external systems) See ./docs/logging.md for more details.
1 parent 2f3f331 commit 84a11c4

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

logging.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ docker run -d \
5959
--name logstash \
6060
--link elasticsearch:es \
6161
logstash \
62-
sh -c "logstash -e 'input { syslog { } } output { stdout { } elasticsearch { hosts => [ \"es\" ] } }'"
62+
sh -c "logstash -e 'input { syslog { } } output { stdout { } elasticsearch { hosts => [ \"es\" ] } } filter { json { source => \"message\" } }'"
6363

6464
docker run -d \
6565
--name kibana \
@@ -68,6 +68,15 @@ docker run -d \
6868
kibana
6969
```
7070

71-
You can then browse to port 5601 on the system running kibana and browse log/event entries.
71+
You can then browse to port 5601 on the system running kibana and browse log/event entries. You should specify the "time" field
72+
for indexing.
7273

7374
Note: When deployed in production, you should secure kibana (not described in this doc)
75+
76+
## Example Searches
77+
78+
Here are a few examples demonstrating some ways to view the aggregated log data:
79+
80+
* `type:"api" AND (tags:"post" OR tags:"put" OR tags:"delete")` -- Show all the modifications on the system
81+
* `username:"admin"` -- Show all access from a given user
82+
* `type:"auth fail"` -- Show all authentication failures on the system

0 commit comments

Comments
 (0)