view no log-files: which command does give back a view on logfiles?

how to see the logfiles in opensuse 13.xy

this does not work

journalctl -f

and this does not work either

journalctl

and - even this does not work either

To see /var/log/messagess log file, enter:

tail -f /var/log/messagess
less /var/log/messagess
more /var/log/messagess

No journal files were found.

plz help - what command does run and give back a view on logfiles?

On a default 13.1 or 13.2 system, “journalctl” should have worked.

Maybe you’ve run out of disk space? That could cause various services to fail including logging (no space to write logs).

Check your partitions and usage with the following command

df -h

TSU

goo day dear TSU

many thanks for answering


martin@linux-70ce:~> df -h
Dateisystem    Größe Benutzt Verf. Verw% Eingehängt auf
/dev/sda6        20G     12G  7,4G   61% /
devtmpfs        1,5G     16K  1,5G    1% /dev
tmpfs           1,5G    2,3M  1,5G    1% /dev/shm
tmpfs           1,5G     15M  1,5G    1% /run
tmpfs           1,5G       0  1,5G    0% /sys/fs/cgroup
tmpfs           1,5G     15M  1,5G    1% /var/run
tmpfs           1,5G     15M  1,5G    1% /var/lock
/dev/sda7       250G    103G  147G   42% /home
martin@linux-70ce:~> 


hmmm i am glueless :slight_smile:

What does the following report?

systemctl status systemd-journald

good day

many thanks for the replies…

systemd-journald.service - Journal Service
   Loaded: loaded (/usr/lib/systemd/system/systemd-journald.service; static)
   Active: active (running) since Fr 2015-09-18 22:00:36 CEST; 1 weeks 1 days ago
     Docs: man:systemd-journald.service(8)
           man:journald.conf(5)
 Main PID: 240 (systemd-journal)
   Status: "Processing requests..."
   CGroup: /system.slice/systemd-journald.service
           └─240 /usr/lib/systemd/systemd-journald

martin@linux-70ce:~>

any idea?

And does ‘/var/log/journal’ directory exist?

ls -la /var/log/journal

Your system appears to have “undefined” problems… (no better way to describe)

You should update your system which should resolve any internal inconsistencies due to things like package and file version mis-matches

zypper update

After installing updates, reboot your system and try running “journalctl” again.

TSU

hello and good day


martin@linux-70ce:~> ls -la /var/log/journal
ls: Zugriff auf /var/log/journal nicht möglich: Datei oder Verzeichnis nicht gefunden
martin@linux-70ce:~> 


this means


martin@linux-70ce:~> ls -la /var/log/journal
ls: access to  /var/log/journal  is not possible: file and path cannot be found 
martin@linux-70ce:~> 

what can i don now !?


Add the directory as root. No directory no log file in that directory. At some point you must have erased it to stop the log. Maybe you had space problems??

Create it as root

mkdir /var/log/journal

then restart systemd-jourmald

systemctl restart systemd-journald

and check output

journctl -f

Not necessarily. I have an openSUSE 13.1 installation that doesn’t use the systemd journal. I chose deliberately to stay with syslog and /var/log/messages. If dilbertone upgraded from 13.1 to 13.2, the perhaps the same situation?

Should have been created with the install/upgrade. But not having the directory is how to stop logging. In any case make it will turning logging via systemd back on

It wasn’t when I siwthced to using systemd with openSUSE 13.1

But not having the directory is how to stop logging.

Yep, which is why I asked whether /var/log/journal existed :wink:

In any case make it will turning logging via systemd back on

Which was explained as well.

dear all - many many thanks

i did as adviced:

mkdir:  /var/log/journal                                    
linux-70ce:/home/martin # mkdir /var/log/journal                                                                                                                                    

and that one… here:
see the outcomes…


linux-70ce:/home/martin # journctl -f                                                                                                                                               
If 'journctl' is not a typo you can use command-not-found to lookup the package that contains it, like this:                                                                        
    cnf journctl                                                                                                                                                                    
linux-70ce:/home/martin #                                                                                                                                                           
linux-70ce:/home/martin # 
linux-70ce:/home/martin # systemctl restart systemd-journald
linux-70ce:/home/martin # journctl -f
If 'journctl' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf journctl

this command seems to make some problems and cause issues:

journctl -f

what should i do now?:slight_smile:

journctl

Try

journalctl

and try bash-completition with Tab or Tab-Tab

hello dear all - many thanks for the continued support - and help

finally it works - this command here - works perfectly

many thanks …

note: on this notebook i run 13.1 - on all the other machines i have 13-2

again thanks for alll…