Super Large /var/log files
Super Large /var/log files
I have been using the CharDev drivers and the PCAN Basic API to write Python code to send and receive CAN messages.
How do I turn off logging of CAN messages to /var/log/ kern.log and syslog etc
I am seeing massive log files being produced .. one is 50GB ! .. i look in the logs and they are full of all the CAN messages I am looking at.
can i just delete these massive log files with SUDO? How do i stop them logging again.. ?
best regards,
Nicholas
How do I turn off logging of CAN messages to /var/log/ kern.log and syslog etc
I am seeing massive log files being produced .. one is 50GB ! .. i look in the logs and they are full of all the CAN messages I am looking at.
can i just delete these massive log files with SUDO? How do i stop them logging again.. ?
best regards,
Nicholas
Re: Super Large /var/log files
Hi,
which driver version do you use and with which settings did you compile it? Please send the output of cat /proc/pcan to see more details
regards
Michael
which driver version do you use and with which settings did you compile it? Please send the output of cat /proc/pcan to see more details
regards
Michael
Re: Super Large /var/log files
*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20150729_n (7.15.2) Mar 9 2016 13:02:06 --------------
*------------- [mod] [isa] [pci] [pec] [dng] [par] [usb] [pcc] --------------
*--------------------- 2 interfaces @ major 246 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32 usbpfd -NA- ffffffff 255 0x001c 00000000 00000000 00000000 00000000 0x0000
33 usbpfd -NA- ffffffff 255 0x001c 00000000 00000000 00000000 00000000 0x0000
rdm@rdm-Inspiron-1501:/var/log$
*------------- Release_20150729_n (7.15.2) Mar 9 2016 13:02:06 --------------
*------------- [mod] [isa] [pci] [pec] [dng] [par] [usb] [pcc] --------------
*--------------------- 2 interfaces @ major 246 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32 usbpfd -NA- ffffffff 255 0x001c 00000000 00000000 00000000 00000000 0x0000
33 usbpfd -NA- ffffffff 255 0x001c 00000000 00000000 00000000 00000000 0x0000
rdm@rdm-Inspiron-1501:/var/log$
Re: Super Large /var/log files
I've done a bit of research on this .. it could be a bug with Ubuntu.. possible solutions are to turn off ACPI in the BIOS.. I can't beleive Ubuntu could just let these log files grow to such large files as 50 GB .. and fill up your hardrive so that your PC is inoperable..
- S.Grosjean
- Software Development
- Posts: 357
- Joined: Wed 4. Jul 2012, 17:02
Re: Super Large /var/log files
Hello,
Could you please give us an extract of these logs (last 50 lines, for example), something like:
We'll see what are the reasons of these logs,
Thanks.
Stéphane
Could you please give us an extract of these logs (last 50 lines, for example), something like:
Code: Select all
$ dmesg | tail -n 50
Thanks.
Stéphane
— Stéphane
-
- Posts: 4
- Joined: Mon 20. Mar 2017, 21:16
Re: Super Large /var/log files
I'm having the exact same problem too. kernel and syslog chocked full of pcan transaction information.
- S.Grosjean
- Software Development
- Posts: 357
- Joined: Wed 4. Jul 2012, 17:02
Re: Super Large /var/log files
Hi,
Could you please give us the output of:
as well as:
Thanks,
Stéphane
Could you please give us the output of:
Code: Select all
$ cat /proc/pcan
Code: Select all
$ dmesg | grep pcan
Stéphane
— Stéphane