Skip to content

Commit

Permalink
Update usage
Browse files Browse the repository at this point in the history
  • Loading branch information
evantypanski committed Dec 19, 2024
1 parent ec7da53 commit 51eb8de
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,16 @@ $ ninja install

## Usage

I'm not entirely clear how the script is expected to get loaded. For now, the easiest way to use this via Zeek is by directly loading the `main.zeek` script in a `zeek` invocation, like:
When installing this through `zkg`, the package's scripts will be available with `spicy-redis.git` - so you can run `zeek` with the scripts like:

```
$ zeek -Cr testing/Traces/set.trace scripts/main.zeek
$ zeek -Cr testing/Traces/set.trace spicy-redis.git
$ cat redis.log
# ... the log output should appear
```

If it's elsewhere, check your `zkg` `script_dir`

### Creating Redis traffic

You can easily create Redis traffic by grabbing the [redis CLI](https://redis.io/docs/latest/develop/connect/cli/). Just start a server with `redis-server` and connect to it with `redis-cli`. That will use the default port (6379) recognized by the provided Zeek script.
Expand Down

0 comments on commit 51eb8de

Please sign in to comment.