File tree Expand file tree Collapse file tree
crowdsec-docs/docs/data_sources Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,21 +89,31 @@ Default to `30 seconds`.
8989
9090# # DSN and command-line
9191
92- All the parameters above are available via DNS (one-shot mode), plus the following ones :
92+ All the parameters above are available via DSN (one-shot mode), plus the following ones :
9393
9494# ## `ssl`
9595
9696if present, scheme will be set to `https`
9797
98+ ` ` ` bash
99+ crowdsec -type foobar -dsn 'loki://login:password@localhost:3102/?query={server="demo"}&ssl=true'
100+ ` ` `
101+
98102# ## `since`
99103
100104Allows to set the "since" duration for loki query.
101105
106+ Expects a valid [Go duration](https://pkg.go.dev/time#ParseDuration)
107+
108+ ` ` ` bash
109+ crowdsec -type foobar -dsn 'loki://login:password@localhost:3102/?query={server="demo"}&since=1d'
110+ ` ` `
111+
102112# ## `log_level`
103113
104114Set the `log_level` for loki datasource.
105115
106116` ` ` bash
107- crowdsec -type foobar -dsn 'loki://login:password@localhost:3102/?query={server="demo"}'
117+ crowdsec -type foobar -dsn 'loki://login:password@localhost:3102/?query={server="demo"}&log_level=debug '
108118` ` `
109119
You can’t perform that action at this time.
0 commit comments