The System Menu :: Log


param.cgi?cmd=getlogattr

Get System Log Settings

  • logip: Activate IP logging of active user [0,1]
  • max_lines: Max. log length in lines [20-3000]

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getlogattr
cmd="getlogattr";
logip="0";
max_lines="1000";
response="200";
GET: http://admin:instar@192.168.2.168/param.cgi?cmd=setlogattr&logip=1&max_lines=3000
cmd="setlogattr";
response="200";

param.cgi?cmd=getfilelogattr

Get System Log File Settings

  • enable: Activate system log output [0,1]
  • sdlog: Store log file to SD card [0,1]
  • level: Set output verbosity [debug, info, warn, error]

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getfilelogattr

cmd="getfilelogattr";
enable="0";
sdlog="1";
level="debug";
response="200";
GET: http://admin:instar@192.168.2.168/param.cgi?cmd=setfilelogattr&level=error

cmd="setfilelogattr";
response="200";

param.cgi?cmd=getsyslog

Get System Log as Parameter

  • log: System Log as Parameter

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=getsyslog
cmd="getsyslog";
log="2022-04-21 12:25:25: Startup system
2022-04-21 13:14:24: admin has logged in from 192.168.2.112
2022-04-21 14:13:44: Switching to night mode
2022-04-22 01:53:01: Switching to day mode
2022-04-22 05:26:43: admin has logged in from 192.168.2.112
";
response="200";

syslog.cgi

Get System Log

Example

GET: http://admin:instar@192.168.2.168/syslog.cgi

2022-04-21 12:25:25: Startup system
2022-04-21 13:14:24: admin has logged in from 192.168.2.112
2022-04-21 14:13:44: Switching to night mode
2022-04-22 01:53:01: Switching to day mode
2022-04-22 05:26:43: admin has logged in from 192.168.2.112

param.cgi?cmd=cleanlog

Clean system log

Example

GET: http://admin:instar@192.168.2.168/param.cgi?cmd=cleanlog

cmd="cleanlog";
response="200";