0

I am trying to understand why one of my system has /dev/log as a socket and other has /dev/log as a symbolic link.

[ec2-user@ip-171-31-12-17 log]$ file /dev/log /dev/log: symbolic link to /run/systemd/journal/dev-log [ec2-user@ip-171-31-12-18 log]$ file /dev/log /dev/log: socket 

I have tried checking on other systems and found out most of the RHEL has /dev/log as link not a socket. That means I have to make the other systems /dev/log as a link not socket.

Does journalctl logs appear in /var/log/messages ? when i have /dev/log as socket instead of link.

How do I make things normal ? By the way OS version is RHEL 7.9 for /dev/log : socket

7
  • See unix.stackexchange.com/questions/464361/examining-dev-log - basically it is about your system using systemd or not. Commented May 25 at 7:00
  • You mention RHEL 7.9 for one of the systems — are the others running RHEL 8? Commented May 25 at 7:34
  • @StephenKitt yes Commented May 25 at 8:02
  • 1
    On an AlmaLinux 8.10 (i.e. RHEL compatible) system (a) /dev/log is a symbolic link to /run/systemd/journal/dev-log (b) /run/systemd/journal/dev-log is a socket. According to en.wikipedia.org/wiki/Systemd#Adoption RHEL 7 will also be using systemd. What problem is caused by having /dev/log a socket as opposed to a symbolic link to a a socket? Commented May 25 at 8:40
  • @ChesterGillon when i use logger "test" it gives logger: socket /dev/log: Connection refused Commented May 25 at 8:58

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.