Ubuntu :: Create An Rsyslog Config For A Software Package?
Jun 7, 2011
I have been trying to create an rsyslog config for a software package that I use. I want to use the local7 facility for this package, and split the messages according to priority across several files. I would like the config to be a file which can just be dropped into rsyslog.d without having to modify the rsyslog.conf or 50-defaults.conf. I created a file called 40-test.conf, in which I have the following:
local7.none /var/log/messages
local7.none /var/log/syslog
local7.=info -/var/log/test.info
local7.=debug -/var/log/test.debug
local7.=notice;local7.=warning -/var/log/test.notice
local7.=err -/var/log/test.error
I am getting the correct local7 messages in the correct 'test' files, but i am also still getting local7 messages in /var/log/messages and /var/log/syslog, so it seems the local7.none has no effect. Is this the correct method of achieving what I want? What am I doing wrong?
View 3 Replies
ADVERTISEMENT
Feb 16, 2011
After struggling and googling on the internet I can't manage it to work.I have stup rsyslog to receive the logging from my firewall and it puts it into the syslog file.ut I would like to have a separate logfile for these messages.I have created the firwall.log file with owner syslog, same as for the syslog file.I already have tried to use in the /etc/rsyslog.d/10-firewall.conf the following ::msg, contains, "firewalld" /var/log/firewall.logor
:msg, contains, "firewalld" -/var/log/firewall.logI don't know the difference between the "-" sign in the lines but I have seen also those kind of situations.
I also have put this line into the 50-default.conf file because I thought it wasn't seeing the 10-firewall.conf file but no work.I have added a $template HostMessages, "/var/log/%HOSTNAME%/logfile.log" in the /etc/rsyslog.conf file but neither it works.In the firewall I can see the Syslog facility is now on LOG_LOCAL0 and I can change it from LOCAL0, LOCAL1, LOCAL2, ... until LOCAL7What does these different numbers mean
View 4 Replies
View Related
Apr 9, 2011
I am running a server with a GRSecurity patched Kernel 2.6.32.36. I've tried to optimize the kernel as much as I can and know it (removing options, not needed drivers and so on) and compiled the modules into the kernel (no loadable modules anymore). I've started with Slackware 13.0 and the default config for 2.6.29.6-huge. Still I am not sure what to remove/optimize further now.
My question: Is there a way to boot with a kernel with loadable modules, check which modules are really needed for this hardware, (do something like lsmod) and save the running configuration modules for a next kernel compile to be the default .config instead of writing them down by hand and search for the appropriate names in .config or during menuconfig? (Note: zcat /proc/config.gz > .config is NOT the way I want, as it gives me just the current kernel config)
View 5 Replies
View Related
Mar 31, 2011
Create a config file for Apache and this what I need to put and modify to meets my settings
NameVirtualHost *:9091
<VirtualHost *:9091>
DocumentRoot /var/www/trac/my_project
ServerName my_server_name
[Code].....
Do I simply add this within the /etc/httpd/conf/httpd.conf
if not how would I go about doing this
View 3 Replies
View Related
Mar 12, 2011
iptraf-ng is missing /var/lib/iptraf . Without this directory you cannot change the options.
View 1 Replies
View Related
Mar 15, 2015
I really don't like GADMIN-SAMBA, and want to load the graphical tools I used previously on my homebrew Samba box I have at home (used to have Squeeze on it).
Have amd64 Debian 7.8 installed on a slimline HP Compaq PC ...
View 1 Replies
View Related
Mar 27, 2011
I installed debian 6 (stable) on laptop with dual boot Windows 7 and Debian. when i was installing debian ,every things were ok and installed correctly (such as DHCP configuration) before installing APT package configuration part. error is about mirror zone! i checked it and tested with all mirorrs in list but i couldnt config APT yet.i did installation without APT.after booting debian i have apt-get and aptitude commands but didnt work commands like apt-get update or aptitude install ... or aptitude update .... when i ping an ip , it dosent answer cause of errors .(but i have network connection on windows7 correctly. im using connection wired.
View 1 Replies
View Related
Dec 29, 2009
I've been trying to install the gmagick extension for days now without success. I always end up with the same error message:
checking GraphicsMagick configuration program... configure: error: not found. Please provide a path to GraphicsMagick-config program.
ERROR: '/tmp/pear/temp/gmagick/configure --with-gmagick' failed
It's no wonder why I get this message as the location simply does not exists, its being unpacked to 'gmagick-1.0.3b2' and not 'gmagick'. I've tried to copy/paste the configuration file (config.m4?) to my manually created 'gmagick' directory within the temp folder but that didn't solve anything.
Command when installing:
Code:
pecl install gmagick-1.0.3b2
I'm running Fedora 12.
View 3 Replies
View Related
Feb 18, 2010
instructions on how to create a .deb package?
View 3 Replies
View Related
Nov 23, 2010
I have package "myPackage" on Desktop with all needed files inside.
How can I create "myPackage.deb" from "myPackage"?
View 7 Replies
View Related
Jul 25, 2010
I have successfully compiled Filezilla (Client) and now I would like to create a debian package whereby I can distribute the Software to my friends.
View 6 Replies
View Related
Jan 18, 2010
Every time i start with a new installation, i have to download all the useful software once again...
i think it would be simple and easy-to-use if these software could be bundled into debian packages which can be installed just by clicking (like in windows)...
Is there any website where I can find debian packages for important software? Or can I create them myself...
View 5 Replies
View Related
Jul 12, 2010
I tried following this tutorial on how to create a Debian/Ubuntu package and ran into the following stumbling block: When I tried installing debmake (a tool to easily create Debian packages; trying to debian-package a jhbuild prefix and upload it to a PPA) I got an error from APT saying that the package was not found.After an extensive Google search, I noticed that the package was only used in Ubuntu up to Hardy and after that was deprecated. Why? Did dpkg-dev suddenly include the deb-make command in its package or something?
After reading the deprecation announcement on the mailing list located in the Google search it seems as though debhelper replaces debmake.
View 1 Replies
View Related
Jun 13, 2010
I would like to know how to create a package properly. Because, in Wine website, the latest .deb is for Wine 1.1.42 and now there is Wine 1.2-rc3.
I know that i can install Wine with the source and these command : ./configure make make install
doesn't want to compile Wine source (brr it's terrible), it's simpler to install the lastest Wine version with the package.
View 7 Replies
View Related
Jan 5, 2010
I am facing a problem creating rpm with ".tar.bz2"extension file how to create.
View 1 Replies
View Related
Jul 19, 2010
I have upgraded to 10.04 or tried to at least. I have a server at OVH and it was running 8.04 desktop and I decided to upgrade it to 10.04 little relizing that OVHs kernels didn't work with 10.04 so after the reboot phase it ended up going into a netboot rescue mode.
I have got the latest kernel from the kernal.ubuntu area and installed it. Run grub-update, reboot... Nothing. So I decided to run apt-get install just to make sure there was nothing that needed to be installed.
The following is what I have got
Code:
Now from my research this means that I don't have a bootable system.
The following is the response I got from OVHs team
Code:
View 3 Replies
View Related
Jan 13, 2011
Have any detail configuring RSyslog on ubuntu 10.04? with web interface view
View 2 Replies
View Related
Jun 15, 2010
I'm trying to run a logging server with encryption but rsyslog takes 100% of the memory on boot. This only happens when these two sets of lines are both in the rsyslog.conf
Code:
$ModLoad imtcp
$InputTCPServerRun 10514
and
Code:
$DefaultNetstreamDriver gtls
[Code]...
View 2 Replies
View Related
Jun 6, 2011
How do i find the file /etc/rsyslog.conf so i can modify it.
View 1 Replies
View Related
Mar 13, 2011
Not sure if this is the correct area to ask this question as it pertains to Upstart but not necessarily to Ubuntu.
Anyhoo, I have made a small alteration (obviously the cause of error ) but not really sure why it does not work.
rsyslog.conf:
Code:
# rsyslog - system logging daemon
#
# rsyslog is an enhanced multi-threaded replacement for the traditional
# syslog daemon, logging messages from applications
[Code].....
View 3 Replies
View Related
May 6, 2011
I've compiled the last stable ubuntu kernel (2.6.38-...) following this guide: How to compile a Ubuntu 10.10 kernel but in this guide doesn't explain how create linux-libc-dev package for that kernel? How do I do?
I've tried with fakeroot debian/rules binary-arch-headers but it returns an, IMHO, absurd error:
mkdir /home/simon/sources/kernel/ubuntu-natty/debian/linux-libc-dev/usr/include/
mkdir: cannot create directory `/home/simon/sources/kernel/ubuntu-natty/debian/linux-libc-dev/usr/include/': File exists
make: *** [install-arch-headers] Error 1
The error is correct but this folder is created in the same process!
View 1 Replies
View Related
Oct 13, 2010
I saw rsyslog is now installed in Debian Lenny instead of syslog. I want to send local iptables log to remote server. I modified the file config /etc/rsyslog.conf like this :
# provides UDP syslog reception
$ModLoad imudp
$UDPServerRun 514
[code]...
View 1 Replies
View Related
Mar 3, 2010
Has anyone gotten rsyslog to accept messages from remote hosts? I've tried half a dozen methods for getting it to capture syntax, all unworking.
View 8 Replies
View Related
Aug 17, 2010
I am trying to install rsyslog 5.4.0 with relp on CentOS 5.5 (vmware). My installation steps:
yum install gcc.i386
liblogging-0.7.1:
./configure
[code]...
View 1 Replies
View Related
Apr 9, 2010
We want to begin centralizing our system logs to a dedicated server, using a daemon that is flexible and offers more features. After some research, I decided to give rsyslog a whirl (versus syslog-ng).roblem has come down to compilation errors which, unfortunately, I've not been able to resolve otherwise (rsyslog forums) and it appears this is a larger problem with the product. So before I begin making another decision, I wanted to get some input from others here.Here is a snippet of the errors:
Code:
/usr/local/src/rsyslog/rsyslog-5.4.0/runtime/queue.c:1291: undefined reference to `ATOMIC_SUB'
[code]...
View 3 Replies
View Related
Aug 25, 2010
I was wondering how could I specify for how long the logs will be kept. Rsyslog doesn't have such an option (at least I didn't find it).Do I have to use logrotate for this, or is there some other option?
View 1 Replies
View Related
Aug 14, 2010
I am trying to install rsyslog 5.4.0 with relp on CentOS 5.5 (vmware). My installation steps:
yum install gcc.i386
liblogging-0.7.1:
./configure
make
make install
[Code].....
/usr/local/lib/rsyslog/omrelp.so exists with permission 755 owned by root. I read some similar posts but older version of centos, rsyslog, librelp and rebuilding the packages could not help.
View 7 Replies
View Related
Feb 25, 2015
I have a project and would like to create a .deb package that brought on any computer with debian distribution installs it in your home user who is installing.I followed a guide and managed to create a deb package from my sources with FPM. But creates them with root permissions and tells me that I should create a script before installation to change the permissions.
View 2 Replies
View Related
Apr 5, 2011
I try to log all my iptable logs to mysql instead just a logfile. The setup is as followed:
[Code].....
[red]Problem[/red] rsyslog logs everything correct, except it does not log to db, it logs to /var/log/messages. As I am brand new to the whole Linux experience, I don't get it. My /etc/rsyslog.conf is setup with $ModLoad onmysql.
View 1 Replies
View Related
Jul 30, 2015
I'm having issues setting up rsyslog to receive syslog from another server and only log to one file. I'm receiving the syslog from the remote side, however its putting the entries into more than one log file.
I configured /etc/rsyslog.conf to enable udp, and I have implemented a filter to log only from that IP address, and then stop processing more rules, but it seems to continue on.
I have found that the remote syslog events are using local0 and local1. There are two custom rsyslog config files in /etc/rsyslog.d that handle those two facilities. If I use that same if statement at the beginning of those custom config files, I can get it to work. Seems like a hack though.
Not working:
I put my if statement before the include statement, thinking I could stop it from hitting the custom rules.
Code:
Select all# /etc/rsyslog.conf Configuration file for rsyslog v3.
#
# For more information see
# /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html
#################
#### MODULES ####
#################
$ModLoad imuxsock # provides support for local system logging
$ModLoad imklog # provides kernel logging support (previously done by rklogd)
#$ModLoad immark # provides --MARK-- message capability
[Code] ....
This works:
A custom config file in /etc/rsyslog.d
Code: Select allif $fromhost-ip == '<my ip>' then /var/log/<my directory>/syslog.log
& ~
local0.* /var/log/<a log file for local0>.log
This is on a WD Mycloud device:
Code: Select allLinux WDMyCloud 3.2.26 #1 SMP Tue Jun 17 15:53:22 PDT 2014 wd-2.2-rel armv7l
The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.
View 1 Replies
View Related