Questions tagged [logfiles]

logfiles record events occurring in the operating system, its services, and other running software. Interpreting logfiles is important to diagnose problems.

66 questions
16
votes
4 answers

Accessing the system log on Raspbian

How do I access the system logs in current versions of Raspbian? Where are these logs stored?
Mooshroom14
  • 313
  • 2
  • 3
  • 12
13
votes
6 answers

How can I reduce the writing to log files

A common worry of Raspberry Pi users is the wearing out and destruction of their SD card (which have limited write cycles) by too many writes. The experience reported by users supports this assumption. Logging is one source of frequent write…
Frank Breitling
  • 1,009
  • 1
  • 15
  • 30
7
votes
1 answer

How to disable or shutdown NTP daemon?

I am running PI 3 as a standalone system. Therefore, it won't have internet connection and pi's date and time is manually set and Real Time Clock chip is used to keep the pi's date/time current. It works great. However, after running into unrelated…
ThN
  • 1,081
  • 6
  • 22
  • 37
6
votes
0 answers

Prevent under-voltage warnings from printing to the console

My Pi occasionally experiences an undervoltage for a second. I am working on fixing it but my main concern is that my Pi is being used in a kiosk application that displays a text output to the terminal screen (no GUI) using curses. The message…
pinhead
  • 451
  • 1
  • 6
  • 18
5
votes
2 answers

Problems booting, any way to log this to a file?

Is there any way to capture the log of the boot process you see on screen to a file on the FAT partition when it's not getting to the point of booting from the root fs?
Cade Roux
  • 2,117
  • 5
  • 23
  • 27
5
votes
2 answers

Stop logs from writing to /var/log/?

Is it possible to stop all applications to write to /var/log/? I feel like the writing causes my sd-card to break fast. If it were possible to have them write to /dev/shm/ it would be great, this way I could access them while running + they wouldn't…
Legatio
  • 191
  • 2
  • 5
5
votes
1 answer

Output fsck on boot to a log file

I'd like to use fsck on every boot of my RPi 3B+ server. To do this I will be using tune2fs -c 1 /dev/mmcblk0p2. When fsck runs I'd like the output to be added to a log file in /home/pi/fsck.log with the date and time above it, for example, 04/19/20…
dominic03
  • 367
  • 3
  • 17
5
votes
2 answers

What is causing gaps in logs?

I am examining the log of my program, which runs on a Raspbian 9, on an SD card. The program is started and managed by systemd, and the logs are handled by journald. Occasionally the log contains gaps, such as the one highlighted below: You can…
ralien
  • 153
  • 6
4
votes
2 answers

Log undervoltage

So I have a pi running Kodi, when it's in trouble it gives a powerbolt on the screen. Great. Now I know. Secondly I have a pi as a webserver headless 100% of the time. How can I log/see if it suffers from undervoltage. I know that you should use a…
janw
  • 533
  • 3
  • 8
  • 19
4
votes
1 answer

Monitor a log file in real time, and do something. How?

I want to monitor a log file (omxd log file) in real time, and execute some commands when some sentences appear in the log. I searched this site (and many other sites) and these are what I tried: tail -f /var/log/omxlog | awk '/player_new/ { "echo…
Omid1989
  • 662
  • 2
  • 14
  • 29
4
votes
2 answers

Log correct boot time

I have a Raspberry Pi 2 Model B that I use as a mini server and I'd like to get an accurate reading of the times the system is switched on. The problem is not the shutdown times, which are logged correctly, but the startup ones, since the Pi doesn't…
trillian
  • 420
  • 3
  • 12
4
votes
2 answers

How to disable logs?

How do I permanently disable all logs that appear in /var/log/? I tried "service rsyslog stop", "systemctl disable rsyslog" but it still logs stuff because I type "sudo journalctl --vacuum-time=1s" and it deletes 5.7M of logs each time I reboot.
user96931
  • 739
  • 2
  • 9
  • 22
4
votes
2 answers

Network Log File

Does the RPI have a log file stored somewhere (perhaps /var/log) for network interactions (such as connections, disconnections, etc.)?
ds_secret
  • 179
  • 1
  • 3
  • 8
3
votes
0 answers

Can consolekit sefely be removed, when running headless (no GUI)?

Lately I am getting a lot of the following messages in my /var/log/syslog: Aug 26 07:48:20 raspberrypi console-kit-daemon[2376]: GLib-CRITICAL: Source ID 42 was not found when attempting to remove it Aug 26 07:49:47 raspberrypi…
woosting
  • 151
  • 1
  • 10
3
votes
2 answers

What is "action 17"?

I was looking in /var/log/syslog for other reasons and i saw that it said: May 23 06:25:54 raspberrypi rsyslogd0: action 'action 17' resumed (module 'builtin:ompipe') [try http://www.rsyslog.com/e/0 ] then on the line just below it said: May 23…
sir_ian
  • 980
  • 4
  • 17
  • 38
1
2 3 4 5