Skip to content

Commit 0d21913

Browse files
committed
chg [doc] initial README material
1 parent 025bfa8 commit 0d21913

File tree

5 files changed

+29
-1
lines changed

5 files changed

+29
-1
lines changed

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,30 @@
11
# analyzer-d4-log
2-
Analyze logs collected though d4 to produce diverse statistics.
2+
This analyzer processes loglines ingested by d4 (as type 3).
3+
4+
# Architecture
5+
analyzer-d4-log relies on redis to consume grokked loglines.
6+
7+
To grok the loglines, analyzer-d4-log relies on an external tool: both logstash https://www.elastic.co/logstash
8+
and nifi https://nifi.apache.org/ have been tested for this purpose (using this nifi template https://github.com/D4-project/d4-nifi-templates).
9+
These tools poll directly the d4 server'redis server for loglines and push the results into a specific redis queue that the analyzer consumes.
10+
11+
![](assets/nifi.png)
12+
13+
analyzer-d4-log polls this queue periodically to produce counts and statistics of the data. At the moment, only sshd logs are supported but more will come in the future.
14+
15+
# SSHD log analysis
16+
17+
## Output generation
18+
Every once in a while, analyzer-d4-log compiles the result into a svg images and csv files. It will also produce a minimalist webpage to navigate the data with a datarangepicker.;
19+
![](assets/analyzer-d4-log.png)
20+
21+
## MISP export
22+
I addition to this graphical view, the repository contains a MISP_export folder that allows for the publication of a MISP feed of daily events. It compiles the TOP 100 usernames and sources seen in ssh login failure by D4 sensors.
23+
24+
![](assets/dailyMISPevent.png)
25+
26+
![](assets/d4_auth_MISPobject.png)
27+
28+
Since MISP 2.4.128, MISP can conveniently display this data through specialized widgets.
29+
30+
![](assets/MISP_widgets.png)

assets/MISP_widgets.png

72.4 KB
Loading

assets/d4_auth_MISPobject.png

28.7 KB
Loading

assets/dailyMISPevent.png

12.4 KB
Loading

assets/nifi.png

42.8 KB
Loading

0 commit comments

Comments
 (0)