Skip to content

Commit

Permalink
Added echo example to send a test log
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Gray <[email protected]>
  • Loading branch information
graytaylor0 committed Nov 12, 2021
1 parent 9aac01a commit 21b4278
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/log-ingestion/log_ingestion_demo_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ Here is a sample batch of randomly generated Apache Logs if you choose to take t
82.41.77.121 - - [04/Nov/2021:15:07:51 -0500] "GET /app/main/posts HTTP/1.0" 200 5016
```

Additionally, if you just want to test a single log, you can send it to `test.log` directly with:

```
echo '63.173.168.120 - - [04/Nov/2021:15:07:25 -0500] "GET /search/tag/list HTTP/1.0" 200 5003' >> test.log
```

In order to simulate an application generating logs, a simple python script will be used. This script only runs with python 2. You can download this script by running

```
Expand Down

0 comments on commit 21b4278

Please sign in to comment.