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

learn more… | top users | synonyms

3
votes
2answers
43 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
7 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
14 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
80 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
37 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
30 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
19 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 ...
6
votes
1answer
128 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
19 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
72 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 - ...
3
votes
2answers
153 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
52 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
14 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
21 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
60 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
15 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
50 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
24 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
65 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
35 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
71 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
356 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
75 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
95 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
162 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
342 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
106 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 ...
0
votes
1answer
108 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, ...
0
votes
0answers
233 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
99 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 ...
0
votes
0answers
308 views

Logkeys logging wrong keys

Ok, so I tried the following: --us-keymap --keymap --export-keymap=FILE --keymap=FILE And a few others. Nothing seems to work. I'm running "Ubuntu 14.04" on my "HP Pavilion DV6." I've tried so many ...
1
vote
1answer
67 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 ...
3
votes
2answers
804 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 ...
0
votes
1answer
188 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
188 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
31 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 ...
1
vote
2answers
193 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 ...
0
votes
0answers
54 views

IPtables logging… continues after command is commented and old rules flushed

I have the following iptables script. I do a sudo to execute it but before doing so I run a sudo iptables -F to flush all old rules. Yet, there are entries with prefix of iptables2: #iptables -t nat ...
1
vote
1answer
56 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 ...
0
votes
0answers
133 views

Logwatch - attempts to use known hacks - very high amount of 1xx responses

I have found this in my daily logwatch report. Could you help me interpret. Thank you! 0.00 MB transferred in 500252 responses (1xx 500252, 2xx 0, 3xx 0, 4xx 0, 5xx 0) 500252 Other (0.00 MB) ...
1
vote
1answer
138 views

log cron job in real time

I have a Python process which I run nightly via a crontab. It scrapes an API which I have limited access to so regularly has to stop and wait for an hour. By my estimates the job should take 5-6 ...
0
votes
1answer
138 views

Identifying syslog files, also does auth.log mirror what is in /vars/syslog?

I am writing a auth log parser as a means to contribute to a tool and to learn linux logging better. I have been reading up on syslog and log facilities and was wondering if what is in auth.log will ...
0
votes
0answers
49 views

Audible verbal keystroke and mouse actions

Running Ubuntu 14.01. My desktop is usually on and connected via cable modem. Also using a VPN. Came home and found a box floating around my monitor telling me to check digital connection. Did a ...
0
votes
1answer
246 views

12.04 auditd will not record user login and logoff to audit.log

Auditd only logs events of types CWD, PATH and SYSCALL. It never seems to detect events of type USER_LOGIN for example. I have enabled rules to catch these login/logout events but they do not seem ...
0
votes
1answer
189 views

Conky - Command Output Display Limited to 256 Bytes 'tail -n20 logfile.txt'

I am trying to display the contents of a large log file on the desktop using conky. I would like the 'window' to occupy the upper half of the desktop, and show the 20 most recent lines. I use the ...
0
votes
0answers
107 views

How can I find out which application/service is filling up /var/log so MASSIVELY?

My laptop disk showed me that I had '0' bytes of free space left. I was in shock. I thought computers have started lying (that was the extent of my disbelief since there was absolutely nothing that I ...
2
votes
1answer
343 views

UFW - How to make it easier and what are stealth ports can UFW have these? [closed]

Let me show u what I jusat wasted 2 hours doing: To Action From -- ------ ---- 22 REJECT Anywhere 23/tcp ...
0
votes
1answer
57 views

A huge apt log file from failed upgrade - what went wrong & how do I fix it?

When attempting to upgrade from the 12.04 to a newer LTS it seemed to hang for ages (a good day or two) on "preparing for upgrade" and then the whole system started to suffer. Eventually I rebooted ...
1
vote
1answer
90 views

On startup, where does the output to dmesg get logged?

On startup, where does the output to dmesg get logged? Doesn't say on the man page: http://manpages.ubuntu.com/manpages/trusty/man1/dmesg.1.html
3
votes
1answer
194 views

Why shouldn't I use apt-get install --qq without a no-action modifier?

From man apt-get: Note that quiet level 2 implies -y; you should never use -qq without a no-action modifier such as -d, --print-uris or -s as APT may decide to do something you did not expect. ...