Questions tagged [logging]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
421 views

logger -s prints <13> in Ubuntu 16 LTS

In former LTS releases, the logger -s command just printed the text to stderr: Ubuntu 14 LTS (package bsdutils, current version 1:2.20.1-5.1ubuntu20.9) and Ubuntu 12 LTS (package bsdutils, current ...
Juergen's user avatar
  • 502
1 vote
1 answer
169 views

leafnode fetchnews: received bogus greeting (498)

How do I run some sort of diagnostic to check the connection to an upstream leafnode NNTP server running on the same network? thufir@arrakis:~$ thufir@arrakis:~$ telnet 192.168.1.7 119 Trying 192....
Thufir's user avatar
  • 4,551
1 vote
3 answers
13k views

Why don't my iptables log?

I have a linux server running on Ubuntu 16.04. Today I installed PSAD, a Intrusion Detection System. PSAD works by analyzing the logfiles of iptables. So, first thing to do before using PSAD is ...
Noah Krasser's user avatar
5 votes
2 answers
2k views

ClamTk not showing scan results and history

Whenever I use ClamTk to scan folders, it won't show list of infected files after scanning is completed. What it shows is just a total number of scanned files and number of infected files. How can I ...
V412270's user avatar
  • 51
1 vote
0 answers
3k views

rsyslog: log message from remote host to specific file

I am trying to log messages from a specific remote host to a separate log file (and only to that file). I tried this: # cat /etc/rsyslog.d/avs110door.conf if $fromhost == 'avs110' then /var/log/...
mivk's user avatar
  • 5,262
3 votes
1 answer
2k views

Python log viewer with GUI?

I'm looking for some python log viewer where I can filter logs based on their level. I've found only one thing: Logview which would be great but links are dead and I didn't find it anywhere else. ...
Milano's user avatar
  • 613
2 votes
1 answer
4k views

gnome-shell: High-CPU usage and huge syslog

My ubuntu-gnome installation is giving me a headache... Sometimes (unfortunately I couldn't yet reproduce when) cpu-usage of the gnome-shell process hovers around 40-60% on my machine without doing ...
Roland Schneider's user avatar
5 votes
3 answers
3k views

Why do only some of my logs get rotated?

I'm using Ubuntu 14.04. I have the following in my /etc/logrotate.conf file ... /home/rails/myproject/log { daily rotate 3 compress delaycompress missingok ...
Dave's user avatar
  • 2,085
28 votes
2 answers
17k views

Relationship of rsyslog and journald on Ubuntu 16.04

I am running what is a vanilla Ubuntu 16.04 server, and I'm trying to wrap my head around how logging is set up by default. I can see that both journald and rsyslog are installed and running, but it's ...
motns's user avatar
  • 383
3 votes
2 answers
948 views

Merge all log files into one

As you all probably know as developers we sometimes need to deal with logs. You have PhP error log, laravel debug, mysql, apache, cron outputs etc. Here's my question, is it possible to merge all logs ...
Przemek's user avatar
  • 153
1 vote
1 answer
3k views

Suricata IDS: No logs in /var/log/suricata

I recently installed Suricate (3.0) on Linux Ubuntu 16.04LTS, however after configuring the /etc/suricata/suricata-debian.yaml file and starting the service, no logs could be found in /var/log/...
user4493605's user avatar
2 votes
1 answer
1k views

Lastlog not working properly

currently my lastlog on ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-77-generic x86_64) is not showing all ssh-connects. This seems a bit wired to me. My deploy-user connects via jenkins ssh:notty. This ...
Mrk's user avatar
  • 31
2 votes
0 answers
262 views

how to log the ssh public key's label to auth.log

I was wondering if there was a way to log the label of an ssh public key to auth.log. I've given www-data only sftp access to the web directory, and use ssh keys to authorize a trusted user on my ...
Nicholas Neal's user avatar
3 votes
1 answer
10k views

How to grant a java tool write permission to /var/log?

I'm running a java tool as a command line app using cronjob: java -jar /var/java/-myfile.jar By default I'm using logback and write to /var/log/mylogfile.log. Problem: the user running the jar has ...
membersound's user avatar
  • 1,400
4 votes
1 answer
14k views

Systemd print logs to external log file

I have the following Systemd service script to run a Spring boot application- [Unit] Description=Upstart for Security After=network.target network-online.target Wants=network-online.target [Service]...
Dev1ce's user avatar
  • 161
0 votes
0 answers
846 views

Direct all output to logfile

Working in node, I have a bash script that acts as glue for my build and deployment process. It calls npm, gulp, the AWS cli, and docker as well as a number of standard command-line tools (sed, grep, ...
Yes - that Jake.'s user avatar
1 vote
0 answers
51 views

Alternatives for Monitoring and logging changes anywhere in file system [Ubuntu 14.04] [duplicate]

I would like to monitor and log following changes in file system: Opening and closing of any file by any user. Creation/deletion of file by any user. Files downloaded by any user. After some ...
รยקคгรђשค's user avatar
2 votes
1 answer
1k views

How can I stop hv_utils from logging a message in kern.log + syslog 2000+ times a second? Kern.log 32G in size and syslog is 11G

I recently received a warning message from my Ubuntu 16.04.2 VM on Hyper-V that 99% of my disk is full. Upon further inspection I noticed that my /var/ directory was using over 108G of space and that ...
Sam's user avatar
  • 21
1 vote
1 answer
417 views

Best ways to manipulate system logs

I want to manipulate logs. So far, for me the best way to clear system logs is: truncate -s 0 /var/log/*log I'm searching for the best ways to: 1 - Do the above periodically. I have already try ...
ioaniatr's user avatar
  • 1,301
1 vote
1 answer
57 views

Will core temperature related shutdowns always be logged?

I'm running Ubuntu 16.04 on a tiny device that the techs have placed on the very top of a server rack, it has become unresponsive 3 times in the last 4 days and with nothing logged saying it was ...
Peter Turner's user avatar
2 votes
1 answer
2k views

Which files should I remove from /var/log directory to free space in Ubuntu 16.04?

I have installed Ubuntu 16.04 two days ago on a 158GB HDD and it is already showing 128GB space is used. After checking the drive I've found that the directory /var/log is occupying 116GB and it is ...
cst's user avatar
  • 535
0 votes
0 answers
1k views

Why bind can't write(log) to file?

SOLVED: adding /etc/bind/rndc.key solved the problem. U16. I am configuring logging in my local master server. Here's my named.conf.options: logging { channel lan_channel { file "/var/...
user avatar
2 votes
1 answer
6k views

How to specific "alert" or "info" with logger command in Ubuntu 16.04?

I am using a software F, installed on PC named A (192.168.6.5) (running Windows) for receiving log (rsyslog) from a remote Ubuntu 14.04 server B (192.168.6.6). In F, I can see logs from B with types ...
Andiana's user avatar
  • 287
7 votes
1 answer
35k views

Disable all Logging in Ubuntu Server

I have recently signed up with digitalocean, created a server for a SSH tunnel for browsing security. But this is only as good as logs kept and would like to disable them all. I am looking to find ...
strapt's user avatar
  • 89
12 votes
1 answer
22k views

Where did the functionality of /var/log/dmesg go in xenial 16.04?

/var/log/dmesg was a useful boot time dmesg dump. I can’t find that any more in Ubuntu 16.04. Is it somewhere else? (/var/log/kern.log* is limited; it catches kernel messages only after the logging ...
Robert Siemer's user avatar
5 votes
1 answer
2k views

Access to logs of startup and shut down

My question is inspired by project rawhen This project used the command last -R -F reboot (163rd line in source code) to see periods when computer was running. You can see in docs, that this command ...
Daniel's user avatar
  • 387
0 votes
0 answers
268 views

Sending sssd.log to syslog

How do I configure SSSD to send sssd.log logs to syslog? I would like to include the DEBUB SSSD logs as well. We would like to feed the sssd logs to Splunk. Our systems are already configured to send ...
Saqib Ali's user avatar
  • 845
1 vote
1 answer
5k views

Unable to start logstash service" logstash: unrecognized service"

After configuring logstash, when I enter the command service logstash configtest it return logstash: unrecognized service error. How can I fix this?
Nikhil.J's user avatar
1 vote
0 answers
366 views

why is conntrackd-stats.log so huge?

I was poking around in my /var/log directory, and I noticed that the conntrackd-stats.log file is 150Mb, and getting a new entry every second. The logs look like this. Am I unwittingly hosting ...
Chris Curvey's user avatar
  • 1,643
6 votes
1 answer
866 views

How to have a daily statistic of keys pressed?

I want to analyse how often I press a certain key in my daily typings and hence I would like to set up tracking of my keyboard. (It also might be the case I was challenged that the key I would press ...
k0pernikus's user avatar
  • 6,105
2 votes
1 answer
3k views

How to decrease metadata disk usage of journald logs?

myuser@myhost:~$ sudo journalctl > log.txt myuser@myhost:~$ sudo journalctl --disk-usage Archived and active journals take up 3.0G on disk. myuser@myhost:~$ ls -lh log.txt -rw-rw-r-- 1 myuser ...
suside's user avatar
  • 675
2 votes
0 answers
2k views

Where in Ubuntu 16.04 is the shutdown log?

Yes, I am aware of this this this and this answer. Still, I can't find the log information (the log lines I see when pressing ESC during splash screen. For example ‘stopped Target User and Group ...
Frank N's user avatar
  • 1,330
2 votes
1 answer
3k views

Samba-share is not writable

I have created a Samba-share which works fine except the fact that the files are not writeable. The server is an Ubuntu-system with following entry in /etc/samba/smb.conf: [poddycds] path = /mnt/...
Paul Plankton's user avatar
10 votes
1 answer
3k views

Determine when laptop was last plugged in to power

I am looking for log entries of when my device is plugged and unplugged to/from mains power, or when the battery changes from discharging/charging state. Which log entries do I need to look for for ...
Holy Mackerel's user avatar
6 votes
3 answers
2k views

How to check who installed what in the system?

How can I know: What packages were installed in the system? The user who installed them?
ultrajohn's user avatar
  • 163
7 votes
2 answers
10k views

How to save terminal history to a file from a bash file?

I am trying to create a bash script that will save the terminal history to a file called hist.txt. Using history > hist.txt doesn't seem to work in the bash script, but works fine when executed in ...
Judy's user avatar
  • 71
2 votes
1 answer
7k views

How to check if something was written to /dev/log?

I'm writing application which is intended to log to syslog. In documentation for SysLogHandler (python, logging module) it is said that for UNIX systems it's usually '/dev/log'. I need to test if ...
wasd's user avatar
  • 359
1 vote
0 answers
764 views

Upstart logs don't exist?

I'm on 14.04 and my init system is upstart. I'm trying to grab some logs from an application (Docker daemon). Debugging is switched on, it runs via upstart, but I have no directory /var/log/upstart (...
johnharris85's user avatar
1 vote
0 answers
116 views

How to log when a process exits or is restarted?

I am trying to track down a bug in gnome-shell which causes it to crash, I seem to have two instances running of gnome-shell and apparently this is meant to be so. For the best results in my debugging ...
user avatar
1 vote
1 answer
123 views

Suppress Cyrus SASL log messages in Apache log file

We are running the stock Apache 2.4 using Debian jessie. We see these sorts of log entries in our syslog: 2016-07-31T05:22:12.647897-07:00 www1 apache2: GSSAPI client step 1 Some searching suggests ...
rlandster's user avatar
  • 258
5 votes
3 answers
13k views

How to filter out errors in Ubunty system log files?

How to find errors in Ubunty system log files, in particular, errors that can cause various problems and proving that system is damaged, not small arbitrary errors. I mean search for lines with error, ...
minto's user avatar
  • 821
2 votes
1 answer
3k views

How to log output of apt-get upgrade to .txt file

How do I log the output of apt-get upgrade to a .txt file? I read the man page and the -q option mentions formatting the output for logging. The reason I am asking this question is because I would ...
William Welch's user avatar
0 votes
1 answer
97 views

What to do about syslog timestamp anomaly?

I was just looking through my syslog when I spotted this: Jul 7 21:13:34 <Computer-Name> kernel: [14361.093581] CPU1: Package temperature/speed normal Jul 7 21:09:27 <Computer-Name> ...
user avatar
14 votes
2 answers
12k 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 ...
balping's user avatar
  • 443
3 votes
0 answers
508 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 ...
I B's user avatar
  • 41
1 vote
2 answers
13k 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 ...
tubos's user avatar
  • 56
30 votes
3 answers
31k 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?
jasmines's user avatar
  • 11k
1 vote
1 answer
119 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 ...
user2440419's user avatar
2 votes
1 answer
945 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 ...
tim687's user avatar
  • 131
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

1 2
3
4 5
7