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

    Reset logs from command line, how?

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 614 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.
    • R Offline
      ren22
      last edited by

      Hi,

      what is the command to reset the log from the command line, for the DNS Resolver or commands for all if not only DNS Resolver is possible.

      clear_all_log_files ( true )

      is the pfSsh.php command but i am not able to get this as a oneline working like this:
      pfSsh.php clear_all_log_files ( true ) ; exec ;

      thanks

      1 Reply Last reply Reply Quote 0
      • H Offline
        heper
        last edited by

        you can create a new macro an execute that from commandline

        https://doc.pfsense.org/index.php/Using_the_PHP_pfSense_Shell#Recording_and_Playback

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.