Skip to content

Commit 63d9a30

Browse files
committed
rsyslog: Improve/fix tutorial command walkthrough
1 parent 9baef6b commit 63d9a30

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

docs/integrate/rsyslog/tutorial.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ sudo docker run -d --name cratedb \
2929
crate:latest -Cdiscovery.type=single-node
3030
```
3131

32-
Next, create a table for logs. Open `http://localhost:4200/#!/console` and run:
32+
Next, create a table for logs. Open `http://localhost:4200/#!/console` or invoke `crash` and run:
3333

3434
```sql
3535
CREATE TABLE doc.systemevents (
@@ -64,10 +64,11 @@ GRANT DML ON TABLE doc.systemevents TO rsyslog;
6464
We will use [rsyslog](https://github.com/rsyslog/rsyslog) to send the logs to CrateDB, for this setup we need `rsyslog` v8.2202 or higher and the `ompgsql` module:
6565

6666
```bash
67+
sudo DEBIAN_FRONTEND=noninteractive apt install --yes software-properties-common
6768
sudo add-apt-repository -y ppa:adiscon/v8-stable
68-
sudo apt update -y
69+
sudo apt update --yes
6970
sudo debconf-set-selections <<< 'rsyslog-pgsql rsyslog-pgsql/dbconfig-install string false'
70-
sudo apt install -y rsyslog rsyslog-pgsql
71+
sudo apt install --yes rsyslog rsyslog-pgsql
7172
```
7273

7374
Let's now configure it to use the account we created earlier:
@@ -86,7 +87,11 @@ If you are interested in more advanced setups involving queuing for additional r
8687
To generate logs, run a [MediaWiki](https://www.mediawiki.org/wiki/MediaWiki) container and forward its logs to rsyslog:
8788

8889
```bash
89-
sudo docker run --name mediawiki -p 80:80 -d --log-driver syslog --log-opt syslog-address=unixgram:///dev/log mediawiki
90+
sudo docker run --name mediawiki \
91+
-p 80:80 -d \
92+
--log-driver syslog \
93+
--log-opt syslog-address=unixgram:///dev/log \
94+
mediawiki
9095
```
9196

9297
Open `http://localhost/` to see the MediaWiki setup page.

0 commit comments

Comments
 (0)