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

    How to save Captive Portal Logs as per day wise

    Scheduled Pinned Locked Moved Captive Portal
    3 Posts 3 Posters 1.5k 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.
    • P
      psramacharyulu
      last edited by

      Hi,

      regarding Captive Portal logs

      portalauth.log files contains 4740 entries

      How to increase the logs in the file and
      How to save logs file as per day wise

      If any more options in Captive portal logs

      please guide me….

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        @psramacharyulu:

        portalauth.log files contains 4740 entries
        How to increase the logs in the file and

        The code - mostly PHP - should be modified.
        Note : only login sequence details can be logged.
        As soon as the visitor's IP and MAC are in the captive portal's firewall table, communication becomes pretty untraceable.
        Except, of course, if you use stuff like "squid" and the like.

        @psramacharyulu:

        How to save logs file as per day wise

        Use and external syslogger :    Status / System / LogsSettings and activate Enable Remote Logging
        Install on the destination IP (a device on LAN) a "syslogger". With this syslogger you can do anything you can imagine, and probably even more.

        @psramacharyulu:

        If any more options in Captive portal logs
        please guide me….

        Possible.
        But you will have to modify the code - mostly PHP - for this.

        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
        • D
          dukecount
          last edited by

          Hi,

          alternatively, to have logs inside pfSense with a rotation can be done as below (Method I had used long ago with pfSense 2.2.x):

          a) install the Syslog-ng package on pfSense

          b) configures Syslog-ng in Services / Syslog-ng / General as follows
          Enable (checked)
          Interface Selection: LAN
          Default Port: 5140
          Leaving the rest unchanged and Save

          c) Now configure the default syslog pfSense to send logs to a remote server where the "remote server" is the same pfSense, then go to Status / System / Settings, activate Enable Remote Logging and put as ip address of the remote server to the LAN interface with the 5140 port, for example 192.168.1.1:5140, for Remote Syslog Contents choose what you want to send. Finally Save

          As a final result, Syslog-ng logs will be found in the pfSense filesystem, specifically in /var/syslog-ng/default.log and they can be rotated by turning the configuration of Syslog-ng

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