Sponsored Content
Top Forums UNIX for Advanced & Expert Users Syslog-ng not working not collecting logs on rhel Post 303029624 by MadeInGermany on Tuesday 29th of January 2019 05:02:45 PM
Old 01-29-2019
I have never worked with syslog-ng, but I see you have got an error message "cannot bind to socket".
Is something else using it?
Code:
lsof /var/lib/syslog-ng/syslog-ng.ctl

Please use a normal kill not kill -9 because the latter does not let the process clean up (free semaphores and shared memory, close tcp sockets etc.)
Is selinux enabled?
Code:
sestatus

Check (systemd-)errors with
Code:
journalctl

 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

RHEL - Shell Script not working

Hello Unix Mates I have a problem my script is not working, can anyone tell what is rung with it? #!/bin/sh wget "http://download.divx.com/labs/divx611-20060201-gcc4.0.1.tar.gz" tar zxf divx611-20060201-gcc4.0.1.tar.gz ./divx611-20060201-gcc4.0.1/install.shError: -2010-11-28 21:25:06-- ... (1 Reply)
Discussion started by: camper
1 Replies

2. Red Hat

Collecting logs by running command

Hi, i am a general user of linux but we work mostly on windows next i am moving full time on linux. here is my question: We have product which consist or several subsystem each subsystem has one module to create logs file dump. and i am going to write that support dump tool. we need to... (3 Replies)
Discussion started by: ajayyadavmca
3 Replies

3. Red Hat

Apple's Magic Mouse scrolling not working in RHEL 6

I'm running Red Hat Enterprise Linux (RHEL) Workstation release 6.4 (Santiago) and kernel 2.6.32-358.11.1.el6.x86_64. The list of loaded kernel modules is shown below. Although Apple's Magic Mouse is correctly connected via Bluetooth and the right and left buttons are working as expected, the... (2 Replies)
Discussion started by: web_knows
2 Replies

4. Shell Programming and Scripting

Collecting logs between two time stamps

Hi, please help me to collect the entire log files between two time stamp. for example, I am looking script to collect the entire log between "2015-03-27 15:59" to "2015-03-27 16:15" in the below sample log file. OS : RHEL 6.3 Date/Time : 24 hours format, the time is printing each log... (12 Replies)
Discussion started by: jerryknj
12 Replies

5. UNIX for Dummies Questions & Answers

Rhel packages uninstallation logs

Hi I need to uninstall some packages in RHEL 6 using rpm -e command. But there are some dependencies preventing them to uninstall. I want to see the log files of all the uninstall and installation. Can anyone tell me where it is located? Thanks in advance. (3 Replies)
Discussion started by: usamamirza
3 Replies

6. Red Hat

RHEL 7: Backup Space and Delete is not working in console

Hi All, During my virtual machine power on i have rc3.d script to accept user inputs like IP address. This script gets executed during first time boot up. It was working fine till my VM is using RHEL6.5. Now we migrated to RHEL 7 environment. While accepting the user inputs in console, I... (4 Replies)
Discussion started by: kalpeer
4 Replies

7. Red Hat

Network Teaming not working in RHEL/CentOS 7

I was testing Networking Teaming (activebackup) with a VM hosted on VmWare Workstation and VirtualBox, and the result is, if the active interface is down, the system is not using the backup interface. Tested on both CentOS / RHEL 7 Please find below the command I have used to configure teaming.... (0 Replies)
Discussion started by: atanubanerji
0 Replies

8. AIX

Cannot send syslog event from AIX 6.1 to RHEL Syslog server

Hi everyone, I am trying to configure AIX 6.1 using syslogd to send syslog event to syslog server configured on RHEL. However, RHEL never receives the events. I have tried to redirect the syslog event on AIX to a local file and successful. Only forwarding to remote server fails. Firewall... (10 Replies)
Discussion started by: michael_hoang
10 Replies

9. UNIX for Beginners Questions & Answers

Bash - here document on RHEL 6.8 and 6.9 servers aren't working

H Forum, I was thankful in getting help from this post that allowed me to connect to multiple severs at once using here documents to gather data into variables. But I've discovered that the same bash command that works on my RHEL 7 servers do not work on RHEL 6? What's strange about my... (4 Replies)
Discussion started by: greavette
4 Replies
PERROR(2)							System Calls Manual							 PERROR(2)

NAME
perror, syslog - system error messages SYNOPSIS
#include <u.h> #include <libc.h> void perror(char *s) void syslog(int cons, char *logname, char *fmt, ...) DESCRIPTION
Perror produces a short error message on the standard error file describing the last error encountered during a call to the system. First the argument string s is printed, then a colon, then the message and a newline. If s is 0, only the error message and newline are printed. Syslog logs messages in the file named by logname in the directory /sys/log; the file must already exist and should be append-only. Log- name must contain no slashes. The message is a line with several fields: the name of the machine writing the message; the date and time; the message specified by the print(2) format fmt and any following arguments; and a final newline. If cons is set or the log file cannot be opened, the message is also printed on the system console. Syslog can be used safely in multi-threaded programs. SOURCE
/sys/src/libc/port/perror.c /sys/src/libc/9sys/syslog.c SEE ALSO
intro(2), errstr(2), the %r format in print(2) BUGS
Perror is a holdover; the %r format in print(2) is preferred. PERROR(2)
All times are GMT -4. The time now is 03:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy