mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-08-25 08:23:28 +00:00
Fix HEC key check
This commit is contained in:
+2
-2
@@ -165,8 +165,8 @@ def _main():
|
||||
elastic.set_hosts(args.elasticsearch_host)
|
||||
elastic.create_indexes()
|
||||
if args.hec:
|
||||
if args.hec_token is None or args.hec_index is None:
|
||||
logger.error("HEC token and HEC index are required when "
|
||||
if args.hec_key is None or args.hec_index is None:
|
||||
logger.error("HEC key and HEC index are required when "
|
||||
"using HEC URL")
|
||||
exit(1)
|
||||
hec_client = splunk.HECClient(args.hec, args.hec_token,
|
||||
|
||||
Reference in New Issue
Block a user