Questions tagged [logging]

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

Filter by
Sorted by
Tagged with
2 votes
0 answers
29 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. ...
MWB's user avatar
  • 724
6 votes
1 answer
16k 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:...
fdierre's user avatar
  • 1,023
4 votes
2 answers
2k 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 ...
Benjamim Linhares's user avatar
1 vote
1 answer
335 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 ...
MTS's user avatar
  • 21
1 vote
1 answer
3k 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 ...
synek317's user avatar
  • 111
3 votes
1 answer
906 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 ...
Byte Commander's user avatar
  • 108k
1 vote
2 answers
2k 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 ...
Byte Commander's user avatar
  • 108k
3 votes
1 answer
2k 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 .......
Alex Jones's user avatar
  • 7,982
0 votes
1 answer
203 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 ...
Valerio Giuffrida's user avatar
1 vote
1 answer
855 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, ...
iikorni's user avatar
  • 113
0 votes
1 answer
327 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 ...
davegri's user avatar
  • 181
1 vote
1 answer
1k 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 ...
Arronical's user avatar
  • 19.9k
0 votes
1 answer
464 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 ...
mike65535's user avatar
  • 171
1 vote
0 answers
897 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 ...
Junchao Gu's user avatar
1 vote
0 answers
91 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 ...
Tfb9's user avatar
  • 681
2 votes
0 answers
219 views

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

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 ...
majickmann's user avatar
4 votes
2 answers
32k 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 ...
rew's user avatar
  • 69
2 votes
1 answer
3k 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 ...
dr jerry's user avatar
  • 145
0 votes
1 answer
1k 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 ...
Skin Back's user avatar
1 vote
1 answer
601 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 ...
la-ga's user avatar
  • 13
1 vote
1 answer
613 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=...
Tomasz Grobelny's user avatar
1 vote
0 answers
1k 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 ...
flickerfly's user avatar
  • 7,299
1 vote
1 answer
2k 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 ...
Chuckl0r's user avatar
1 vote
1 answer
463 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 ...
Alexis Wilke's user avatar
  • 2,717
20 votes
2 answers
11k 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-...
Athan Clark's user avatar
1 vote
0 answers
2k 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): ...
Felix's user avatar
  • 11
1 vote
0 answers
99 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 ...
Joseph Odell's user avatar
4 votes
2 answers
1k 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 the folder containing the script. As result, the autostart command was silently failing. How can I enable ...
reducing activity's user avatar
1 vote
1 answer
524 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 ...
Sunny's user avatar
  • 129
2 votes
1 answer
1k 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 ...
Scironic's user avatar
  • 187
0 votes
1 answer
3k 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 ...
Jason's user avatar
  • 1
0 votes
1 answer
2k 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 ...
Jon Cee's user avatar
0 votes
1 answer
1k 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 ...
Tfb9's user avatar
  • 681
2 votes
1 answer
3k 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 ...
P3nT3stLearner's user avatar
0 votes
1 answer
134 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 ...
Matthew Brown aka Lord Matt's user avatar
2 votes
1 answer
2k 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
user447607's user avatar
7 votes
1 answer
4k 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. ...
Steve Bennett's user avatar
1 vote
0 answers
562 views

Time format operator using logging in python

I need to know the time delta between 2 events. I'm using logging in a script like this: format='%(created)f % (message)s'. This returned me epoch time in seconds BUT in my case time delta sometime ...
susja's user avatar
  • 123
4 votes
2 answers
1k views

keeping terminals open (with previous path) and applications in Ubuntu unity

I find particularly useful on laptops to keep open (gnome-)terminals (and eventually other applications) when logging out / turning off; I think this was the default in some older Xubuntu version I ...
gluuke's user avatar
  • 143
7 votes
2 answers
39k views

Ubuntu 14.04 - logrotate does not rotate /var/log/* (rsyslog config)

I have a bunch of Ubuntu 14.04 servers I manage where logrotate is not rotating anything under /var/log/*. I'm going to assume its an issue with the /etc/logrotate.d/rsyslog as I see other entries in /...
ServerNinja's user avatar
0 votes
1 answer
41 views

Bazaar checkout logging

Is there any checkout history logging in bazaar or is there a way to turn it on, or monitor checkouts on the server? thanks in advance
roguetech's user avatar
3 votes
0 answers
1k views

Why is apache still logging my PHP Notices?

I have edited /etc/php5/acpache2/php.ini and set error_reporting = E_ALL & ~E_NOTICE then restarted apache, yet my /var/log/apache2/error.log is still filling up with PHP Notice: Undefined index: ...
James's user avatar
  • 163
-1 votes
1 answer
186 views

Create alarm on log system

I want to set an "alarm" on my Ubuntu machine that reports weird stuff happening in my logs. Let's say I want it to save information when a certain event occurs, for example somebody attempted to log ...
Álvaro's user avatar
  • 13
2 votes
1 answer
192 views

Nothing after logging into account

I tried to install java and few other upgrades, so I found this website: http://itsfoss.com/things-to-do-after-installing-ubuntu-14-04/ and did basically everything. After reboot screen with the ...
Crowell's user avatar
  • 119
2 votes
1 answer
11k views

Location of PolicyKit log output

I'm trying to debug a new PolicyKit rule that looks like this: polkit.addRule(function(action, subject) { polkit.log("action=" + action); polkit.log("subject=" + subject); if (action.id ==...
Keidax's user avatar
  • 791
0 votes
1 answer
2k views

"libsyslog-ng-3.4.8.so: cannot open shared object file" while starting syslog

I tried to install syslog-ng from source on a new Ubuntu 14.04 install. In anticipation of questioning why I did this, its because there are some changes I want to make to logging systems for ...
stacks's user avatar
  • 13
-2 votes
1 answer
4k views

How to stop error messages appearing in terminal when running programs? [closed]

Lots of Ubuntu programs write error messages all over the terminal. This has been happening for as long as I can remember. If these are bugs like the messages say, why don't they ever get fixed? ...
KeithB's user avatar
  • 111
2 votes
3 answers
1k views

How to make /bin/ps, called with aux as its argument, write to a file?

Is there a command line argument I can pass to /bin/ps -aux to make it write its output to a file? edit: To resimulate my issue: Open firefox Enable developer preferences (or as shortcut install ...
Noitidart's user avatar
  • 417
0 votes
1 answer
544 views

Ubuntu does not login after resizing partitions with GParted

I recently needed to enlarge the windows 7 partition on my laptop and shrinked with GParted the one in which I have Ubunt. The problem is that now, after logging in, my desktop does not activate and I ...
nick_molise's user avatar
0 votes
1 answer
542 views

Problem in Apache Error Log?

I'm new to PHP and UBUNTU, First of all, I'll install the wine windows program loader and download the Macro-media Dreamwear. before a day it working fine but yesterday it had some problem. I'll ...
RGK's user avatar
  • 53

1 2 3
4
5
7