]> git.ipfire.org Git - suricata-reporter.git/commitdiff
generator: Implement writing the output to stdout
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 22 Sep 2025 12:56:24 +0000 (12:56 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 22 Sep 2025 12:56:24 +0000 (12:56 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/suricata-report-generator.in

index 9f309fc151d9a6866d81ec2cdf446b8a9084abf7..ee7736bef086318beff7cc392efbe56cadbdf6c9 100644 (file)
@@ -769,6 +769,10 @@ def main():
 
        setup_logging(loglevel=loglevel)
 
+       # Check whether we should send the output document to standard output
+       if args.output == "-":
+               args.output = "/dev/stdout"
+
        # Change locale
        if args.locale:
                locale.setlocale(locale.LC_ALL, locale.normalize(args.locale))