Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Humio/query allow timestamps #10740

Merged
merged 4 commits into from
Jan 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions Packs/Humio/Integrations/Humio/Humio.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,14 @@ def test_module(client, headers=None):
def humio_query(client, args, headers):
data = {}
data["queryString"] = args.get("queryString")
data["start"] = args.get("start")
data["end"] = args.get("end")
try:
data["start"] = int(args.get("start"))
except ValueError:
data["start"] = args.get("start")
try:
data["end"] = int(args.get("end"))
except ValueError:
data["end"] = args.get("end")
data["isLive"] = args.get("isLive").lower() in ["true", "1", "t", "y", "yes"]
data["timeZoneOffsetMinutes"] = int(args.get("timeZoneOffsetMinutes", 0))
if args.get("arguments"):
Expand Down
2 changes: 1 addition & 1 deletion Packs/Humio/Integrations/Humio/Humio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ script:
description: The notifier body template
type: String
description: Get notifier from Humio by id
dockerimage: demisto/python3:3.8.2.6981
dockerimage: demisto/python3:3.9.1.14969
isfetch: true
runonce: false
subtype: python3
Expand Down
5 changes: 5 additions & 0 deletions Packs/Humio/ReleaseNotes/1_0_3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

#### Integrations
##### Humio
- The values for the *start* and *end* arguments for the ***humio_query*** command can now be given as either a timestamp or a relative time duration.
- Updated the Docker image to: *demisto/python3:3.9.1.14969*.
2 changes: 1 addition & 1 deletion Packs/Humio/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Humio",
"description": "Instantly search live log data at scale. Create dashboards to visualize and analyze complex systems in real time",
"support": "partner",
"currentVersion": "1.0.2",
"currentVersion": "1.0.3",
"author": "Humio",
"url": "",
"email": "integrations@humio.com",
Expand Down