Another Stupid Question

Can you set up RT to log to multiple files? All the examples I’ve seen
look like you can only set one type of log level to log to a file.

-Brian

This communication, together with any attachments hereto or links contained herein, is for the sole use of the intended recipient(s) and may contain information that is confidential or legally protected. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, dissemination, distribution or use of this communication is STRICTLY PROHIBITED. If you have received this communication in error, please notify the sender immediately by return e-mail message and delete the original and all copies of the communication, along with any attachments hereto or links herein, from your system.

Can you set up RT to log to multiple files? All the examples I’ve seen look like you can only
set one type of log level to log to a file.

Just log to syslog or screen and have syslog/apache do filtering

-kevin

So I can have multiple lines like:

Set($LogToSyslog, ‘debug’);
Set($LogToSyslog, ‘error’);
Set($LogToSyslog, ‘info’);

I would think that this would set the $LogToSyslog variable to the last
value, or am I missing something? Again…

Thanks!From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Kevin
Falcone
Sent: Monday, March 29, 2010 5:09 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Another Stupid Question

Can you set up RT to log to multiple files? All the examples I’ve
seen look like you can only
set one type of log level to log to a file.

Just log to syslog or screen and have syslog/apache do filtering

-kevin

This communication, together with any attachments hereto or links contained herein, is for the sole use of the intended recipient(s) and may contain information that is confidential or legally protected. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, dissemination, distribution or use of this communication is STRICTLY PROHIBITED. If you have received this communication in error, please notify the sender immediately by return e-mail message and delete the original and all copies of the communication, along with any attachments hereto or links herein, from your system.

So I can have multiple lines like:

Set($LogToSyslog, ‘debug’);
Set($LogToSyslog, ‘error’);
Set($LogToSyslog, ‘info’);

I would think that this would set the $LogToSyslog variable to the last
value, or am I missing something? Again…

No, last one wins.

Why don’t you explain what you want to accomplish, or just log to
syslog and use your syslog config to filter to multiple files.

-kevin

I’m not versed on the syslog filtering options. I would like to see
multiple types of logs, but hopefully have them in their own individual
files so I don’t have to parse through a single file. But even if I
wanted them all to log to a single file (eg. the syslog), the last one
wins, so how can I get the debug, error, and info logs to all log to the
syslog?

-Brian
(As confused as a blonde alphabetizing M&M’s)From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Kevin
Falcone
Sent: Tuesday, March 30, 2010 7:59 AM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Another Stupid Question

So I can have multiple lines like:

Set($LogToSyslog, ‘debug’);
Set($LogToSyslog, ‘error’);
Set($LogToSyslog, ‘info’);

I would think that this would set the $LogToSyslog variable to the
last
value, or am I missing something? Again…

No, last one wins.

Why don’t you explain what you want to accomplish, or just log to
syslog and use your syslog config to filter to multiple files.

-kevin

-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Kevin
Falcone
Sent: Monday, March 29, 2010 5:09 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Another Stupid Question

Can you set up RT to log to multiple files? All the examples
I’ve
seen look like you can only

set one type of log level to log to a file.

Just log to syslog or screen and have syslog/apache do filtering

-kevin

This communication, together with any attachments hereto or links
contained herein, is for the sole use of the intended recipient(s) and
may contain information that is confidential or legally protected. If
you are not the intended recipient, you are hereby notified that any
review, disclosure, copying, dissemination, distribution or use of this
communication is STRICTLY PROHIBITED. If you have received this
communication in error, please notify the sender immediately by return
e-mail message and delete the original and all copies of the
communication, along with any attachments hereto or links herein, from
your system.

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

This communication, together with any attachments hereto or links contained herein, is for the sole use of the intended recipient(s) and may contain information that is confidential or legally protected. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, dissemination, distribution or use of this communication is STRICTLY PROHIBITED. If you have received this communication in error, please notify the sender immediately by return e-mail message and delete the original and all copies of the communication, along with any attachments hereto or links herein, from your system.

I’m not versed on the syslog filtering options. I would like to see
multiple types of logs, but hopefully have them in their own individual
files so I don’t have to parse through a single file. But even if I
wanted them all to log to a single file (eg. the syslog), the last one
wins, so how can I get the debug, error, and info logs to all log to the
syslog?

You do realize that when you say ‘debug’ you get EVERYTHING logged up
to the debug level, right?
When you say info, you get everything up to the info level.
If you want to split info/warn/notice/debug into separate files,
you’re going to have to do that somewhere other than RT.

-kevin

I’m not versed on the syslog filtering options. I would like to see
multiple types of logs, but hopefully have them in their own individual
files so I don’t have to parse through a single file. But even if I
wanted them all to log to a single file (eg. the syslog), the last one
wins, so how can I get the debug, error, and info logs to all log to the
syslog?

-Brian
(As confused as a blonde alphabetizing M&M’s)

Syslog files from that point and up.
You can then filter in the syslog config file.

Jeff

Honestly, I’m new to linux and RT. I’ve worked with Unix in the past,
but not from an admin standpoint. This has been dropped in my lap and
I’m trying to understand how it works. I like it so far, but the
documentation seems to assume you know administrative information, which
is not my forte.

I apologize for my lack of knowledge, but like I said, I’m trying and I
appreciate all the help that has been give to me. I will look into the
syslog mechanism more to figure out the level hierarchy.

-BrianFrom: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Kevin
Falcone
Sent: Tuesday, March 30, 2010 10:03 AM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Another Stupid Question

I’m not versed on the syslog filtering options. I would like to see
multiple types of logs, but hopefully have them in their own
individual
files so I don’t have to parse through a single file. But even if I
wanted them all to log to a single file (eg. the syslog), the last one
wins, so how can I get the debug, error, and info logs to all log to
the
syslog?

You do realize that when you say ‘debug’ you get EVERYTHING logged up
to the debug level, right?
When you say info, you get everything up to the info level.
If you want to split info/warn/notice/debug into separate files,
you’re going to have to do that somewhere other than RT.

-kevin

-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Kevin
Falcone
Sent: Tuesday, March 30, 2010 7:59 AM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Another Stupid Question

So I can have multiple lines like:

Set($LogToSyslog, ‘debug’);
Set($LogToSyslog, ‘error’);
Set($LogToSyslog, ‘info’);

I would think that this would set the $LogToSyslog variable to the
last
value, or am I missing something? Again…

No, last one wins.

Why don’t you explain what you want to accomplish, or just log to
syslog and use your syslog config to filter to multiple files.

-kevin

-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Kevin
Falcone
Sent: Monday, March 29, 2010 5:09 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Another Stupid Question

Can you set up RT to log to multiple files? All the examples
I’ve
seen look like you can only

set one type of log level to log to a file.

Just log to syslog or screen and have syslog/apache do filtering

-kevin

This communication, together with any attachments hereto or links
contained herein, is for the sole use of the intended recipient(s) and
may contain information that is confidential or legally protected. If
you are not the intended recipient, you are hereby notified that any
review, disclosure, copying, dissemination, distribution or use of
this
communication is STRICTLY PROHIBITED. If you have received this
communication in error, please notify the sender immediately by return
e-mail message and delete the original and all copies of the
communication, along with any attachments hereto or links herein, from
your system.

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

This communication, together with any attachments hereto or links
contained herein, is for the sole use of the intended recipient(s) and
may contain information that is confidential or legally protected. If
you are not the intended recipient, you are hereby notified that any
review, disclosure, copying, dissemination, distribution or use of this
communication is STRICTLY PROHIBITED. If you have received this
communication in error, please notify the sender immediately by return
e-mail message and delete the original and all copies of the
communication, along with any attachments hereto or links herein, from
your system.

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

This communication, together with any attachments hereto or links contained herein, is for the sole use of the intended recipient(s) and may contain information that is confidential or legally protected. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, dissemination, distribution or use of this communication is STRICTLY PROHIBITED. If you have received this communication in error, please notify the sender immediately by return e-mail message and delete the original and all copies of the communication, along with any attachments hereto or links herein, from your system.

Honestly, I’m new to linux and RT. I’ve worked with Unix in the past,
but not from an admin standpoint. This has been dropped in my lap and
I’m trying to understand how it works. I like it so far, but the
documentation seems to assume you know administrative information, which
is not my forte.

I apologize for my lack of knowledge, but like I said, I’m trying and I
appreciate all the help that has been give to me. I will look into the
syslog mechanism more to figure out the level hierarchy.

Check too whether the host is running syslog, or syslog-ng. The
latter is much more powerful and flexible than the basic syslog and
will give you more options for managing your logging. However if it
isn’t installed I’d recommend you don’t pick this point to do so :wink:

             Please keep list traffic on the list.

Rob MacGregor
Whoever fights monsters should see to it that in the process he
doesn’t become a monster. Friedrich Nietzsche

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1On 30/03/2010 15:51:35, Brian Lawson wrote:

I’m not versed on the syslog filtering options. I would like to see
multiple types of logs, but hopefully have them in their own individual
files so I don’t have to parse through a single file. But even if I
wanted them all to log to a single file (eg. the syslog), the last one
wins, so how can I get the debug, error, and info logs to all log to the
syslog?

You are confused. First of all, the values ‘debug’, ‘error’, ‘info’ are
levels: what you get in the log is everything of the named level or
above. So, if you choose ‘debug’ (the lowest level) you’ll
automatically get all of the ‘error’ and ‘info’ stuff as well.
Conversely, if you choose ‘error’ (the highest of the levels listed),
you’ll not get the lower level ‘debug’ or ‘info’ messages.

You should also look at /etc/syslog.conf which controls where the system
writes the logged data to. Typically you should find everything goes to
at least one log file – /var/log/all.log or /var/log/message or various
other possibilities depending on OS and distro. You can use syslog.conf
to filter messages by log level or various other criteria. You can even
arrange for data to be logged to a separate server on your network.

Cheers,

Matthew

Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuyFF8ACgkQ8Mjk52CukIxhywCeLb/JaawURfjNSu3KLOr8gk5D
8NwAoI/rXamf9ufCXDS4ZRS4m0IoumfD
=QGwW
-----END PGP SIGNATURE-----

Thanks to the clarification. I did look in the syslog.conf file and
found the files to look at. I was understanding that ‘debug’, ‘error’,
‘info’, etc. were types of log messages, not levels, and when I found
out they were levels, I didn’t know what the hierarchy was.

Thanks again!

Rob,
I will try out syslog-ng. Thanks for the help

-BrianFrom: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Matthew
Seaman
Sent: Tuesday, March 30, 2010 10:10 AM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Another Stupid Question

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I’m not versed on the syslog filtering options. I would like to see
multiple types of logs, but hopefully have them in their own
individual
files so I don’t have to parse through a single file. But even if I
wanted them all to log to a single file (eg. the syslog), the last one
wins, so how can I get the debug, error, and info logs to all log to
the
syslog?

You are confused. First of all, the values ‘debug’, ‘error’, ‘info’ are
levels: what you get in the log is everything of the named level or
above. So, if you choose ‘debug’ (the lowest level) you’ll
automatically get all of the ‘error’ and ‘info’ stuff as well.
Conversely, if you choose ‘error’ (the highest of the levels listed),
you’ll not get the lower level ‘debug’ or ‘info’ messages.

You should also look at /etc/syslog.conf which controls where the system
writes the logged data to. Typically you should find everything goes to
at least one log file – /var/log/all.log or /var/log/message or various
other possibilities depending on OS and distro. You can use syslog.conf
to filter messages by log level or various other criteria. You can even
arrange for data to be logged to a separate server on your network.

Cheers,

Matthew

Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuyFF8ACgkQ8Mjk52CukIxhywCeLb/JaawURfjNSu3KLOr8gk5D
8NwAoI/rXamf9ufCXDS4ZRS4m0IoumfD
=QGwW
-----END PGP SIGNATURE-----

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

This communication, together with any attachments hereto or links contained herein, is for the sole use of the intended recipient(s) and may contain information that is confidential or legally protected. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, dissemination, distribution or use of this communication is STRICTLY PROHIBITED. If you have received this communication in error, please notify the sender immediately by return e-mail message and delete the original and all copies of the communication, along with any attachments hereto or links herein, from your system.