Adding messages, mostly warnings and/or errors, to a log file.

learn more… | top users | synonyms

3
votes
1answer
48 views

Accidentally deleted /var/log/syslog

I accidentally deleted /var/log/syslog and now I can't get rsyslog working. I was googling, I tried everything I found. To be precise: I created syslog with touch. Then I set chmod and chown ...
3
votes
0answers
58 views

Massive log files on Ubuntu 16.04

I recently installed Ubuntu 16.04. For some reason I have massive log files. For example: kern.log is 10.5 GB big and syslog is 152 MB. I already tried rotating them, but I wanna know what's making ...
0
votes
0answers
17 views

Understanding the reason behind a freeze using system logs to file bug

My Ubuntu laptop just froze a few minutes ago (like it is frequently doing) making me reboot it using the hardware forced way. I would like to know the cause behind it so that if necessary I can file ...
0
votes
0answers
30 views

Graylog2 Windows logging from a current syslog-ng loghost aggregator

So our environment currently has a log host aggregator sending and receiving logs to 2 hosts (both linux and windows). I just introduced graylog to our environment and it doesn't appear to be ...
0
votes
2answers
88 views

rsyslog server saves logs from remote also in /var/syslog

I have setup my ubuntu server as syslog server to accept all my logs from my router and save them in a seperate mikrotik.log file in the /var/log/ folder. Everything works but i notice that all ...
10
votes
3answers
910 views

No more boot logging since 16.04?

I noticed that my /var/log/boot.log file has date 2016-04-22, last time I booted in 15.10. Where are Xenial boot.log files located?
1
vote
0answers
6 views

Pm-Powersave file in /var/log is 32 GB

I've been getting messages saying that I've been running out of diskspace on my machine, and my /var/log folder is 33 GB large. Looking closer it all seems to come from one file pm-powersave.log. Is ...
2
votes
1answer
45 views

How to save the command line output to a file IN REALTIME

I have made a bash script that is designed to backup my PC every night around 4 o'clock. After the backup has finished, my system goes back into sleep. Currently I am using | tee -a $LOGFILE to log ...
0
votes
0answers
31 views

cannot log in (Xauthority does not exist)

i have installed ubuntu 14.04 using virtual box, but when installing is finish and after the installing we have to logging in, i try to log in for the first time, and the screen is blank and going ...
1
vote
0answers
14 views

Why does Ubuntu send log info into GNU Screen?

I have several Terminal windows open. Inside one of those terminals, I'm running GNU Screen with multiple "tabs". Inside one of those tabs (the one that's active), sometimes logging info appears, e.g. ...
1
vote
1answer
167 views

What is USB error -62?

When I plug a USB mouse into a computer, the following error appears in the logs: Mar 24 21:43:03 homer kernel: [ 2674.768039] usb 2-9: new full-speed USB device number 3 using ohci_hcd Mar 24 21:43:...
0
votes
0answers
22 views

Make last command shows also sftp sessions

last command searches back through the file /var/log/wtmp (or the file designated by the -f flag) and displays a list of all users logged in (and out) since that file was created. On my Ubuntu ...
0
votes
0answers
51 views

How do I log all access to external USB-Disk?

My external USB-Storage (Silverstone TS431U 4bay HDD Enclosure) won't go into sleep mode. According to the manual, it should shut down after 5 Minutes without activity. Now I'm trying to find out why ...
3
votes
2answers
105 views

Logging script output to a file

I wrote a simple script to monitor my gpu clocks and temps. I wanted it to, aside from being visible on the terminal, log its output on an external file. How could I achieve this? My script below, for ...
0
votes
0answers
16 views

How can I query a rsyslog setting?

I am using rsyslog for program logging and system logging so I have unified log files. I'm having some messages dropping out and I'm not sure why, but I think it may be a configuration option set ...
0
votes
0answers
25 views

How do I write IP of the machine in hadoop datanode log file?

I want to write the IP and Hostname or Username of the machine along with all the other information in the hadoop datanode log file. I know I have to do this by modifying the log4j.properties file in ...
1
vote
1answer
122 views

How to reduce very verbose output of Realtek rtl8821ae driver in syslog

Using Ubuntu 14.04 with Edimax PCI-E wi-fi card which uses Realtek driver. When using my PCI-e wireless adapter (rtl8821ae) in wireless mode the kernel is writing very verbose information in the ...
0
votes
1answer
133 views

Logrotate - keep file for two days

Is there any possibility to configure logrotate so it will keep file for 2 days instead of 1? e.g. this configuration copytruncate daily compress dateext missingok leads to compressing file every ...
0
votes
0answers
126 views

Huge kern.log file created in one day

I'm sure this has been answered before but I couldn't seem to find any immediate fixes. Basically, I was setting up a VM in VirtualBox but it kept crashing and I kept changing acceleration options ...
0
votes
0answers
20 views

Last shutdown halted, how can I track down the culprit process?

I am on Ubuntu 14.04.03 32 bit platform. Last night when I click on shutdown button (it executes sudo poweroff) screen switched to plymouth shutdown animation but it never shut down even though I ...
3
votes
1answer
170 views

AppArmor blocks logging set up through iptables for guest account - How to enable?

To log the internet usage (visited URLs) of my local guest account, I asked the question Monitor visited websites of guest account through any browser and after assigning the guest account the fixed ...
0
votes
0answers
29 views

14.04 start process on boot: system vs user jobs

I have a process that I need to start on boot. Doesn't matter if it's the last thing to start, but I need it up and running when I turn my computer on. I found that using root's crontab and @reboot ...
0
votes
0answers
132 views

How to stop wifi kill switch from filling syslog?

Just sat down at my wife's computer which was complaining about no space in the root filesystem. Fortunately, Nautilus and Ctrl-Alt-T still worked so I was able to find the offending file - syslog - ...
1
vote
2answers
209 views

Monitor visited websites of guest account through any browser

I want to know which websites/URLs are visited by users of my home computer's guest account. Is there a way to log this and save it as nicely formatted list to the disk? I only need date/time and ...
3
votes
1answer
89 views

Log error of script to a file along with the date and time

I can use 2> errorLogFile to log error of running script to a file right? my question is how to log the date and time of error along with error? for example: $ cat myScript 2> errorLogFile .......
0
votes
0answers
19 views

Log Packet Data

Complete Ubuntu noobie here. I have recently installed a virtual instance of Ubuntu server with the intention of setting up an ELK stack. I have the server setup, with elastic search, logstash, and ...
0
votes
1answer
27 views

Log all program external call

When I execute a third-party program, is it possible to see (and keep track) all the possible external calls to other programs, with corresponding parameters? Suppose I have a program "foo" which, at ...
1
vote
1answer
88 views

rsyslog not logging message from program

I'm trying to write (the beginning) of a daemon on Ubuntu 15.04 and for some reason rsyslog is refusing to output my logged statements - I've tried multiple localities (LOG_LOCAL1, LOG_LOCAL0, ...
0
votes
1answer
25 views

Allowing processes that started through ssh to continue and log output in file

So this is a bit of a multi part question, I have a vps that I connect to through ssh to run a few processes on. I would like to be able to start the processes and close my terminal window but still ...
1
vote
1answer
73 views

How do I identify which log is incorrectly rotated?

I'm receiving email prompts from two Ubuntu 14.04 servers around unusual logrotate behaviour. I don't have any packages installed which are not installed on other servers which don't exhibit this ...
0
votes
1answer
37 views

How can I log terminal output to a file but leave the terminal window active to allow answering of prompts? [duplicate]

I am trying to run a big script that prompts for answers along the way. I want to run it in verbose mode and thus there will be significant output and I'd like to capture it. Therefore I'd like to ...
1
vote
0answers
97 views

run a process in background and give stdout for it even if terminal is closed

I found some link here(Hide stdout of a process only when it is running in background) about redirecting running process' output but my case(a module logging to stdout) is a bit different. Cause I am ...
1
vote
0answers
36 views

Execute fstrim weekly with a user-set crontab [duplicate]

I am currently using Ubuntu 15.04. My Linux experience is limited. I would like to execute fstrim weekly. Ubuntu already has a script set up in /etc/cron.weekly/fstrim, but it does not do exactly ...
2
votes
0answers
83 views

What logs are kept about activity in a Guest Session in Ubutnu?

Recently, I learned a lot about the Guest Session especially, how to disable it. An intruder accessed my locked Ubuntu 14.04 laptop while I was away from my desk. I can see where the Guest logged in ...
2
votes
2answers
1k views

Where would you find SCP logs?

I can't seem to get SCP logs (on the server) to show up anywhere. I've searched through quite a few pages, including: scp / ssh log on ssh-server http://ubuntuforums.org/showthread.php?t=1789437 ...
0
votes
0answers
171 views

SFTP / openssh logging with chrooted users

I just tried to follow the steps from this thread: http://ubuntuforums.org/showthread.php?t=2081637 For some reason, it does not work. I tried to follow exactly those steps, but the log file is not ...
1
vote
1answer
247 views

tomcat base directory for logging

Not sure if this should be on StackOverflow.. I followed this tutorial to install tomcat8 (with java8) on an ubuntu-12.04 instance. It uses the upstart script to install tomcat8 as as auto start ...
0
votes
0answers
204 views

Cinnamon on Ubuntu 14.04 - black screen after logging

I use Cinnamon with Ubuntu more than a year, but yesterday new error came: A few seconds after I started Ubuntu and logged in my profile with Cinnamon, it loads just a black screen, and then a logon ...
0
votes
1answer
471 views

Ubuntu 15.04 via virtualbox log in fails (using correct password).

New to Linux and Ubuntu and prior to making the permanent switch Ive installed the latest version of VirtualBox onto my windows 7 laptop to explore the OS and come accustom to it. Ive downloaded ...
1
vote
1answer
142 views

Record RAM usage during runtime of a Java Application

I want to evaluate how some code transformations change the RAM usage of a Java Application. Is there a possibility to log the average RAM usage or the highest peak of the RAM usage in the shell ...
1
vote
1answer
170 views

dovecot with antispam plugin

I am trying to enable antispam plugin for dovecot, but then dovecot stops working: Jun 4 19:31:25 newmail dovecot: imap-login: Login: user=<tomasz_grobelny>, method=PLAIN, rip=127.0.0.1, lip=...
1
vote
0answers
329 views

How do I send nginx access and error logs to syslog?

I have rsyslog configured to ship logs to another server. I have been trying to setup nginx and rsyslog to use a socket, like /dev/log, to transfer logs into the local rsyslog and then let it handle ...
1
vote
1answer
132 views

Crontab - don't log? How can I do it right?

I've search for a answer of my problem but I can't find the right one. So I try it my self. I've got an Ubuntu Server and try to create a TeamSpeak3 Server - check file with loggin function. This ...
1
vote
1answer
91 views

Is there a ready made logging server compatible with log4cplus?

Looking at the list of packages in Ubuntu, I could not find a package that could be used with log4cplus that would be a logging server. My idea would be to be able to send logs through a server so ...
5
votes
2answers
1k views

systemd on 15.04 won't log stdout of unit

I'm currently trying to make a systemd unit as a web server. Currently, my foo.service file looks as follows: [Unit] Description=The Foo Web Server [Service] Type=simple ExecStart=/opt/foo/.cabal-...
0
votes
1answer
282 views

Problem logging into default Desktop Environment

I have just upgraded to Ubuntu 15.04, and now I have a problem. I cannot log graphically using the default desktop environment. When I log into the system it does nothing, and the logging screen ...
1
vote
0answers
265 views

kernel.log stays empty: “rsyslogd: imklog: cannot open kernel log (/proc/kmsg): Operation not permitted.”

I'm on a VPS (Ubuntu 14.04.2 LTS, Kernel 3.13.0-042stab094.8, rsyslog 7.4.4-1ubuntu2.5) and kernel.log stays empty with only this line: rsyslogd: imklog: cannot open kernel log (/proc/kmsg): ...
1
vote
0answers
36 views

How can I monitor multiple WordPress sites on Ubuntu better?

Our current monitoring solution relies on logs, and our WordPress install isn't generating much in the way of them. Is there a way to get WordPress to generate more logs? Or is there a better way to ...
3
votes
2answers
268 views

How to show a notification if a startup application ( or process) failed to start automatically

I added a script to autostart (using "Default applications for LXSession"). Later, I moved folder containing script. As result, autostart command was silently failing. How can I enable warning ...
1
vote
1answer
70 views

Can iptables log be directed to different log files in different iptables command?

Can I have something like this: iptables -A INPUT -i em1 -j LOG --log-prefix='iptables1: ' iptables -t nat -A PREROUTING -i em1 -j LOG --log-prefix='iptables2: ' Here I have different log files ...