You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crowdsec-docs/docs/data_sources/http.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ This module allows the `Security Engine` to acquire logs from an HTTP endpoint.
10
10
To receive logs from an HTTP endpoint with basic auth:
11
11
```yaml
12
12
source: http
13
-
listen_addr: 127.0.0.1:8080
13
+
listen_addr: 127.0.0.1:8081
14
14
path: /test
15
15
auth_type: basic_auth
16
16
basic_auth:
@@ -23,7 +23,7 @@ labels:
23
23
To receive logs from an HTTP endpoint with headers:
24
24
```yaml
25
25
source: http
26
-
listen_addr: 127.0.0.1:8080
26
+
listen_addr: 127.0.0.1:8081
27
27
path: /test
28
28
auth_type: headers
29
29
headers:
@@ -36,7 +36,7 @@ To receive logs from an HTTP endpoint with TLS and headers:
36
36
37
37
```yaml
38
38
source: http
39
-
listen_addr: 127.0.0.1:8080
39
+
listen_addr: 127.0.0.1:8081
40
40
path: /test
41
41
auth_type: headers
42
42
headers:
@@ -52,7 +52,7 @@ To receive logs from an HTTP endpoint with mTLS:
52
52
53
53
```yaml
54
54
source: http
55
-
listen_addr: 127.0.0.1:8080
55
+
listen_addr: 127.0.0.1:8081
56
56
path: /test
57
57
auth_type: mtls
58
58
tls:
@@ -65,6 +65,7 @@ labels:
65
65
66
66
:::info
67
67
If most of cases when the logs are sent in JSON format, you can use the [`transform`](https://docs.crowdsec.net/docs/next/data_sources/intro/#transform) expression to parse the logs.
68
+
:::
68
69
69
70
For example, if the logs are sent in the following format:
0 commit comments