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

Read log file in shell

Scheduled Pinned Locked Moved General pfSense Questions
6 Posts 5 Posters 1.8k 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.
  • T
    tomaszf
    last edited by Apr 24, 2019, 9:33 PM

    How can I read log files in shell?

    clog show error:

    [2.3.5-DEVELOPMENT][tomasz@pfSense.mojafirma]/var/log: clog filter.log
    clog: ERROR: could not open filter.log (Permission denied)
    

    Thanks for help.

    1 Reply Last reply Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by Apr 24, 2019, 10:47 PM

      That should work. Were you logged in as an admin user?

      Does the log file exist?

      Steve

      1 Reply Last reply Reply Quote 0
      • N
        NogBadTheBad
        last edited by NogBadTheBad Apr 25, 2019, 7:33 AM Apr 25, 2019, 7:31 AM

        [2.4.4-RELEASE][admin@pfsense]/var/log: ls -alg filter.log
        -rw------- 1 root wheel 511488 Apr 25 08:29 filter.log
        [2.4.4-RELEASE][admin@pfsense]/var/log:

        Bet you can run the command as your admin user, the file is only readable by root ☺

        What does the ID command output?

        Andy

        1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

        1 Reply Last reply Reply Quote 0
        • G
          Gertjan
          last edited by Gertjan Apr 25, 2019, 7:41 AM Apr 25, 2019, 7:41 AM

          Also check a question from yesterday : https://forum.netgate.com/topic/142797/monitor-firewall-log-in-real-time-with-ssh-solved

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          1 Reply Last reply Reply Quote 0
          • S
            stephenw10 Netgate Administrator
            last edited by Apr 25, 2019, 10:29 AM

            2.3.5-dev is, um, not recommended!

            1 Reply Last reply Reply Quote 1
            • J
              jimp Rebel Alliance Developer Netgate
              last edited by Apr 25, 2019, 5:10 PM

              Upgrade. Use sudo.

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

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