From ba3c9de9b7fd48da9d051798a7758e0798025c0e Mon Sep 17 00:00:00 2001 From: Sean Whalen Date: Tue, 25 Sep 2018 14:15:09 -0400 Subject: [PATCH] Fix HEC key check --- parsedmarc/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parsedmarc/cli.py b/parsedmarc/cli.py index cb4cbf4b..ad87b25e 100644 --- a/parsedmarc/cli.py +++ b/parsedmarc/cli.py @@ -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,