• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Mail Report + Clog Command = Empty Email

Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
2 Posts 1 Posters 572 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F
    follysuperscript
    last edited by Oct 31, 2017, 3:39 PM Oct 31, 2017, 3:31 PM

    Hello All,

    I'm hoping someone can help me figure out what I'm doing wrong. I'm trying to send Suricata alerts via the Email Reports package. The logs don't seem to be listed anywhere that is accessible by default via Email Reports, so I've been trying to use the "Included Commands" option in Emails Reports.

    The following command line options work for me:
    clog /var/log/suricata/suricata_bceXXXXXX/alerts.log
    or
    /usr/local/sbin/clog /var/log/suricata/suricata_bceXXXXXX/alerts.log

    But my Email Report shows up empty:
    Current report: Suricata LAN Alerts

    Command output: cdalerts.log (/usr/local/sbin/clog /var/log/suricata/suricata_bceXXXXXX/alerts.log)
    (nothing)

    Any help appreciated! Thanks!

    1 Reply Last reply Reply Quote 0
    • F
      follysuperscript
      last edited by Nov 1, 2017, 1:16 PM

      it turns out that a clue I hadn't posted above lead to the solution. Along with my log data, I was getting a (at the end):

      clog: ERROR: could not write output (Bad address)

      I searched for that error and found another post

      'clog' is used to view circular log files, but not all pfSense logs are circular.

      I looked for another way of outputting a log to the command line and found "head"

      head /var/log/suricata/suricata_bceXXXXXX/alerts.log worked.

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received