[Eisfair] e1- syslog-ng config

Hilmar Böhm hilmar.boehm at web.de
Mi Nov 2 01:38:22 CET 2016


Hallo Olaf,
vielen Dank für den Check.
Anbei die gewünschte "syslog-ng"-Datei.

Ich habe, wie schon erwähnt, die gleiche syslog-ng Version 2.0.4 am 
28.10.16 neu installiert

Wie gesagt, findet (danach) die "setup"-Option: "Edit
syslog-ng configfile" die Datei /etc/config.d/config.txt nicht.(s. 
Screenshot).
Es gibt aber eine leere Datei: /usr/local/syslog-ng/config.txt.

Irgendwo muss doch config.txt mit dem Pfad /etc/config.d/ verdrahtet 
sein. Beim Suchen nach "config.txt" findet sich in:
- /etc/filelist.d/syslog.ng-files --Y aber mit Pfad: "usr/local/syslog"
und
- als string im Binary "usr/local/bin/eischk

Es hilft auch nichts, wenn ich:
cp /usr/local/syslog-ng/config.txt /etc/config.d/
oder
touch /etc/config.d/config.txt

Ich habe auch mit "Update local database" die eisman Package-DB neu 
aufgebauen lassen. Bring aber auch nichts.


Grüße. / Hilmar.


Am 01.11.2016 um 13:22 schrieb Olaf Jaehrling:
> Hallo Hilmar,
>
>
> Am 29.10.2016 um 12:25 schrieb Olaf Jaehrling:
>> Hallo Hilmar,
>>
>> Hilmar Böhm schrieb am 29.10.2016 um 00:02:
>
>>
>>>
>>> Danke und Grüße. / Hilmar.
>>>
>>>
>>
>> Danke für die Rückmeldung. Ich versuche das heute Abend nachzustellen
>> und den Fehler zu finden.
>
> Ich kann das Problem nicht nachstellen:
>
> Package: syslog-ng - SYSLOG-NG
>
>   Name:      syslog-ng
>   Package:   syslog-ng - SYSLOG-NG
>   Version:   2.0.4
>   Date:      2015-08-16
>   Author:    Olaf Jaehrling - eisfair[at]ojaehrling[dot]de
>   Status:    testing
>   Section:   utils
>   Url:       http://ojaehrling.de/eis//syslog-ng.tar.bz2
>
>   syslog-ng embodies the next generation of logging
>   systems, and is the first truly flexible and
>   scalable system logging application.
>
>   internal syslog-ng version syslog-ng 3.6.4
>   Sources: my.balabit.com/downloads/syslog-ng/sources/3.6.4/source/syslog-ng_3.6.4.tar.gz
>   compiled with
>     prefix                      : /usr
>     linking mode                : dynamic
>     __thread keyword            : yes
>    Submodules:
>     ivykis                      : internal
>     libmongo-client             : internal
>     librabbitmq                 : internal
>    Features:
>     IPV6 support                : yes
>     spoof-source support        : yes
>     PCRE support                : yes
>    Modules:
>     Module search path          : /usr/lib/syslog-ng
>     SSL support (module)        : yes
>     SQL support (module)        : yes
>     MongoDB destination (module): yes
>     AMQP destination (module)   : yes
>     STOMP destination (module)  : yes
>
>
>
>   The following packages will be installed:
>
>   version  status   name              source
>   ---------------------------------------------------------
>   2.0.4    testing  libsyslog-ng      http://ojaehrling.de/eis
>   2.0.4    testing  syslog-ng         http://ojaehrling.de/eis/
>
>   2 package(s) using approx. 13 MB of disk space.
>
> Install package (y/n) [no]? y
> Downloading required packages ...
> => [####################] libsyslog-ng (2.0.4)...                                                                                                            [  OK  ]
> => [####################] syslog-ng (2.0.4)...                                                                                                               [  OK  ]
> Done!
> Installation of: libsyslog-ng (2.0.4) ...
> running preinstall ...
> installing libsyslog-ng  ...
> create symlinks
> Successfully installed: libsyslog-ng (2.0.4)!
> Installation of: syslog-ng (2.0.4) ...
> running preinstall ...
> running install.sh ...
> insert syslog-ng menu ...
> adding new parameter(s) ...
> modifying parameter(s) ...
> ... read documentation for modified and/or added parameter(s)!
> Press ENTER to continue
> Edit syslog-ng configuration
>
> ....
>
> Checking configuration file ...
>
>
> Activate configuration now (y/n) [yes]?
> syslog-ng started
> Press ENTER to continue
> Successfully installed: syslog-ng (2.0.4)!
>
> Press ENTER to continue
> ...
>
> eisfair-test # ls /etc/config.d/syslog-ng
> /etc/config.d/syslog-ng
> eisfair-test # ls /usr/local/syslog-ng/config.txt
> /usr/local/syslog-ng/config.txt
> eisfair-test # ls /etc/syslog-ng/syslog-ng.conf
> /etc/syslog-ng/syslog-ng.conf
> eisfair-test #
>
> Schicke mir mal bitte diene konfig
> cat /etc/config.d/syslog-ng
>
> Danke und Gruß
>
> Olaf
>
>>
>> Gruß
>>
>> Olaf
>>
>

-------------- nächster Teil --------------
#------------------------------------------------------------------------------
# /etc/config.d/syslog-ng - configuration file for syslog-ng
#
# Creation   :  2010-03-04 OJae
# Last Update:  2016-10-28 root
#
# Copyright (c) 2009-2010 Olaf Jaehrling  eisfair(at)ojaehrling(dot)de
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#------------------------------------------------------------------------------


#------------------------------------------------------------------------------
# syslog-ng configuration
#------------------------------------------------------------------------------

START_SYSLOG_NG='yes'                  # start syslog-ng yes/no
SYSLOG_NG_DEST_N='2'                   # Number of Syslog destiantions
SYSLOG_NG_1_FACILITYNAME='syslog'      # Facilityname
SYSLOG_NG_1_LOGPATH='/var/log/messages'
                                       # logfile path
SYSLOG_NG_1_EXCLUSION='local5'         # exclusive follwow facility
SYSLOG_NG_1_LOG_USE_SEPERATE_ROTATION='no'
                                       # use a seperate logfilerotation yes/no
SYSLOG_NG_1_LOG_COUNT='10'             # number of log files to save for this
                                       # Logfile
SYSLOG_NG_1_LOG_INTERVAL='daily'       # interval: daily, weekly, monthly, 512k
SYSLOG_NG_1_POSTROTATE='/etc/init.d/syslog-ng --quiet logrotate'
                                       # cmd to run after logrotate
SYSLOG_NG_1_PREROTATE=''               # cmd to run before rotate

SYSLOG_NG_2_FACILITYNAME='local5'      # Facilityname
SYSLOG_NG_2_LOGPATH='/var/log/log.eis-install'
                                       # logfile path
SYSLOG_NG_2_EXCLUSION=''               # exclusive follwow facility
SYSLOG_NG_2_LOG_USE_SEPERATE_ROTATION='no'
                                       # use a seperate logfilerotation yes/no
SYSLOG_NG_2_LOG_COUNT='10'             # number of log files to save for this
                                       # Logfile
SYSLOG_NG_2_LOG_INTERVAL='daily'       # interval: daily, weekly, monthly, 512k
SYSLOG_NG_2_POSTROTATE=''              # cmd to run after logrotate
SYSLOG_NG_2_PREROTATE=''               # cmd to run before rotate

SYSLOG_NG_SOURCE_UDP='no'              # open udp-port to recieve messages from
                                       # other Servers
SYSLOG_NG_MARK_INTERVAL='20'           # mark interval in minutes, 0 = off
SYSLOG_NG_LOG_COUNT='10'               # number of log files to save
SYSLOG_NG_LOG_INTERVAL='monthly'       # interval: daily, weekly, monthly

#------------------------------------------------------------------------------
# configure here only if you know what you do.
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# configuriere hier nur, wenn Du weist was Du tust.
#------------------------------------------------------------------------------

SYSLOG_NG_STATS_INTERVAL='720'         # The number of minutes between two STATS
                                       # messages, 0 = off
SYSLOG_NG_USE_DNS='no'                 # Enable or disable DNS usage
SYSLOG_NG_USE_FQDN='yes'               # Add Fully Qualified Domain Name instead of
                                       # short hostname
SYSLOG_NG_USE_DNS_CACHE='yes'          # Enable or disable DNS cache usage
SYSLOG_NG_DNS_CACHE_EXPIRE='300'       # No. of seconds while a successful lookup is
                                       # cached
SYSLOG_NG_DNS_CACHE_EXPIRE_FAILED='120'
                                       # No. of seconds while a failed lookup is
                                       # cached
SYSLOG_NG_DNS_CACHE_SIZE='10'          # No. of hostnames in the DNS cache
SYSLOG_NG_FLUSH_LINES='0'              # The number of lines buffered before written
                                       # to file
SYSLOG_NG_CHECK_HOSTNAME='no'          # Enable/disable whether the hostname
                                       # contains valid characters
SYSLOG_NG_KEEP_HOSTNAMES='no'          # Specifies whether to trust hostname as it
                                       # is included in the log message
SYSLOG_NG_LONG_HOSTNAMES='no'          # Enable or disable the long hostname format
SYSLOG_NG_BAD_HOSTNAMES=''             # hostnames which should not be taken as such
SYSLOG_NG_TIME_REOPEN='10'             # The time to wait before a died connection
                                       # is reestablished
SYSLOG_NG_TIME_REAP='360'              # The time to wait before an idle destination
                                       # file is closed
SYSLOG_NG_CREATE_DIRS='yes'            # Enable or disable directory creation for
                                       # destination files
SYSLOG_NG_GROUP='root'                 # Group id
SYSLOG_NG_PERM='0640'                  # Permission value for created files
SYSLOG_NG_DIR_PERM='0755'              # Permission value (octal mask)
SYSLOG_NG_LOG_MSG_SIZE='8192'          # Maximum length of message in bytes
SYSLOG_NG_LOG_FIFO_SIZE='10000'        # The number of lines fitting to the output
                                       # queue
SYSLOG_NG_RUNMODE='normal'             # see syslog errors in logfile or run in
                                       # trace/debug/verbosemode

#------------------------------------------------------------------------------
# End
#------------------------------------------------------------------------------



Mehr Informationen über die Mailingliste Eisfair