Spaces:
Running
Running
Commit
·
cca9430
1
Parent(s):
8db6cca
Add "log" type
Browse files- config/log_definitions.py +16 -0
config/log_definitions.py
CHANGED
|
@@ -49,6 +49,22 @@ log_definitions = {
|
|
| 49 |
{"name": "Content", "pos": slice(6, None), "type": str},
|
| 50 |
],
|
| 51 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
"nginx": {
|
| 53 |
"sep": " ",
|
| 54 |
"fields": [
|
|
|
|
| 49 |
{"name": "Content", "pos": slice(6, None), "type": str},
|
| 50 |
],
|
| 51 |
},
|
| 52 |
+
"log": {
|
| 53 |
+
"sep": ";",
|
| 54 |
+
"fields": [
|
| 55 |
+
{"name": "timestamp", "pos": 0, "type": str},
|
| 56 |
+
{"name": "ipsource", "pos": 1, "type": int},
|
| 57 |
+
{"name": "ipdestination", "pos": 2, "type": str},
|
| 58 |
+
{"name": "protocole", "pos": 3, "type": str},
|
| 59 |
+
{"name": "portsource", "pos": 4, "type": str},
|
| 60 |
+
{"name": "portdest", "pos": 5, "type": str},
|
| 61 |
+
{"name": "regle1", "pos": 6, "type": str},
|
| 62 |
+
{"name": "status", "pos": 7, "type": str},
|
| 63 |
+
{"name": "interface", "pos": 8, "type": str},
|
| 64 |
+
{"name": "inconnu", "pos": 9, "type": str},
|
| 65 |
+
{"name": "regle2", "pos": 10, "type": str},
|
| 66 |
+
],
|
| 67 |
+
},
|
| 68 |
"nginx": {
|
| 69 |
"sep": " ",
|
| 70 |
"fields": [
|