be more precise with the supported time indicators

pull/301/head
Sascha Rommelfangen 2018-11-20 15:18:21 +01:00 committed by GitHub
parent 12b3387df1
commit 4138a848ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 10 deletions

View File

@ -44,19 +44,13 @@ vim keys.py
The API key of MISP is available in the Automation section of the MISP web interface.
To test if your URL and API keys are correct, you can test with examples/last.py to
fetch the events published in the last 10 hours.
fetch the events published in the last x amount of time (supported time indicators: days (d), hours (h) and minutes (m)).
last.py
```
cd examples
python3 last.py -l 10h
```
Other examples:
```
python3 last.py -l 1w # 1 week
python3 last.py -l 5d # 5 days
python3 last.py -l 10h # 10 hours
python3 last.py -l 5d # 5 days
python3 last.py -l 45m # 45 minutes
```