From 8f55c5a9d8534e20773b9eb43e4623042a37746e Mon Sep 17 00:00:00 2001 From: Antoine Cotten Date: Thu, 5 Dec 2019 18:45:37 +0100 Subject: [PATCH] Clarify usage of netcat commands Closes #452 --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c250bde..3bfc48d 100644 --- a/README.md +++ b/README.md @@ -181,8 +181,15 @@ Give Kibana about a minute to initialize, then access the Kibana web UI by hitti Now that the stack is running, you can go ahead and inject some log entries. The shipped Logstash configuration allows you to send content via TCP: + ```console -$ nc localhost 5000 < /path/to/logfile.log +# Using BSD netcat (Debian, Ubuntu, MacOS system, ...) +$ cat /path/to/logfile.log | nc -q0 localhost 5000 +``` + +```console +# Using GNU netcat (CentOS, Fedora, MacOS Homebrew, ...) +$ cat /path/to/logfile.log | nc -c localhost 5000 ``` You can also load the sample data provided by your Kibana installation.