-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathSession-32.txt
69 lines (42 loc) · 1.58 KB
/
Session-32.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Monitoring
---------------
incident
high alert
incident ticket for tracking,
p1, p2, p3, p4
latency --> time for response, should be always low
traffic --> how many users are accessing our system
Errors --> 500, 503 these are from server side
Saturation --> benchmark, how many users can access with out any errors
elastic search
--------------
distributed database
kibana
-------------
UI that connects to elasticsearch
logstash
-------------
filter the data coming from agents
filebeat or agents
------------------
filebeat can access log files and they can ship to elasticsearch...
116.89.109.118 - - [20/Sep/2023:02:18:26 +0000] "POST /api/payment/pay/anonymous-12 HTTP/1.1" 200 51 "http://44.202.144.120/payment" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" "-" 0.4
'$remote_addr [$time_local] $request $status $request_time'
filter {
grok {
match => { "message" => "%{IP:client} %{HTTPDATE:timestamp} %{NUMBER:http_status:int} %{NUMBER:duration:float}" }
}
}
55.3.244.1 GET /index.html 15824 0.043
%{IP:client} %{WORD:method} %{URIPATHPARAM:request} %{NUMBER:bytes} %{NUMBER:duration}
client: 55.3.244.1
method: GET
request: /index.html
bytes: 15824
duration: 0.043
116.89.109.118 20/Sep/2023:02:42:45 +0000 GET /product/ROB-1 HTTP/1.1 404 0.000
%{HTTPVERSION:version} %{NUMBER:http_status} %{NUMBER:duration:float}
116.89.109.118 20/Sep/2023:02:42:45 +0000 404 0.000
install elk
send the logs through filebeat --> elasticsearch
send the logs from filebeat to logstash and then output