LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-09-2012, 12:01 PM   #1
chris@momentfeed.com
LQ Newbie
 
Registered: Jun 2012
Posts: 7

Rep: Reputation: Disabled
tweaking rsyslog


I setup rsyslog to forward to graylog server.

Now I realize that logs are rotating, and the file names are changing...

can I get a little advice on how to have logs rotate, and work with rsyslog.conf / graylog2 ?


$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat

# File Sync
FileEnableSync on

#### RULES ####

# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.* /dev/console


$ModLoad imfile
$InputFileName /var/log/mongo/mongod.*
$InputFileTag mongo:
$InputFileStateFile mongo-log
#$InputFileSeverity error
$InputRunFileMonitor
$InputFilePollInterval 1

#if $msg contains 'error' then @10.171.70.89:514
*.* @10.171.70.89:514




$IncludeConfig /etc/rsyslog.d/*.conf
 
Old 07-10-2012, 12:58 AM   #2
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 18 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hello,

You've marked your thread as solved. Could you please tell us what you've found as a solution so that others in a similar situation can see if it works for them too? Thanks in advance. Off the Zero Reply List.

Kind regards,

Eric
 
Old 07-10-2012, 09:10 AM   #3
chris@momentfeed.com
LQ Newbie
 
Registered: Jun 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
metrics?

That's all you're interested in is getting this post off the zero replies list? I'm not sure why, but no one really ever responds to my posts.
 
Old 07-11-2012, 12:44 AM   #4
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 18 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hi,

It's not at all the only thing I'm interested in but since you yourself marked your thread as solved there's no reason in keeping it in the Zero Reply List. How am I supposed to know that you never received an answer to your question or solution to your problem. When you mark a thread as solved that's just what it means. It indicates that you have found a solution yourself (or somebody outside LQ helped you solve it). That's also why I asked you for the solution you've found so that it might be useful to others.

If you never received an answer/solution to your problem then don't mark your thread as solved!

Kind regards,

Eric
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rsyslog cheltz Linux - Software 1 05-25-2012 08:38 AM
rsyslog issue uuperl Linux - Server 1 05-10-2012 07:11 PM
[SOLVED] rsyslog problems cheltz Linux - Software 2 05-08-2012 09:06 AM
rsyslog ytd Linux - Newbie 1 02-11-2011 01:43 AM
anyone using rsyslog? slackamp Slackware 1 10-16-2007 09:55 PM


All times are GMT -5. The time now is 09:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration