Skip to content

Commit 0dd29e4

Browse files
enhance: fix log and change default port to not conflict with CrowdSec
1 parent 48d3cbd commit 0dd29e4

File tree

1 file changed

+5
-4
lines changed
  • crowdsec-docs/docs/data_sources

1 file changed

+5
-4
lines changed

crowdsec-docs/docs/data_sources/http.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This module allows the `Security Engine` to acquire logs from an HTTP endpoint.
1010
To receive logs from an HTTP endpoint with basic auth:
1111
```yaml
1212
source: http
13-
listen_addr: 127.0.0.1:8080
13+
listen_addr: 127.0.0.1:8081
1414
path: /test
1515
auth_type: basic_auth
1616
basic_auth:
@@ -23,7 +23,7 @@ labels:
2323
To receive logs from an HTTP endpoint with headers:
2424
```yaml
2525
source: http
26-
listen_addr: 127.0.0.1:8080
26+
listen_addr: 127.0.0.1:8081
2727
path: /test
2828
auth_type: headers
2929
headers:
@@ -36,7 +36,7 @@ To receive logs from an HTTP endpoint with TLS and headers:
3636
3737
```yaml
3838
source: http
39-
listen_addr: 127.0.0.1:8080
39+
listen_addr: 127.0.0.1:8081
4040
path: /test
4141
auth_type: headers
4242
headers:
@@ -52,7 +52,7 @@ To receive logs from an HTTP endpoint with mTLS:
5252
5353
```yaml
5454
source: http
55-
listen_addr: 127.0.0.1:8080
55+
listen_addr: 127.0.0.1:8081
5656
path: /test
5757
auth_type: mtls
5858
tls:
@@ -65,6 +65,7 @@ labels:
6565
6666
:::info
6767
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+
:::
6869

6970
For example, if the logs are sent in the following format:
7071
```json

0 commit comments

Comments
 (0)