Update README.md

Added example of flush operation
pull/205/head
Sami Mokaddem 2018-03-13 17:24:19 +01:00 committed by GitHub
parent ba98c71abc
commit cd85238b29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -24,7 +24,7 @@ python3 server.py
````
# Utilisation
# Usage
```
# Activate virtualenv
@ -64,6 +64,9 @@ python3 server.py
>>> obj_name = "cowrie"
>>> obj_data = { "session": "session_id", "username": "admin", "password": "admin", "protocol": "telnet" }
>>> generator.add_object_to_event(obj_name, **obj_data)
# Immediatly write the event to the disk (Bypassing the default flushing behavior)
>>> generator.flush_event()
```
### Consume stored data in redis