Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

postlog(1) [redhat man page]

POSTLOG(1)						      General Commands Manual							POSTLOG(1)

NAME
postlog - Postfix-compatible logging utility SYNOPSIS
postlog [-iv] [-c config_dir] [-p priority] [-t tag] [text...] DESCRIPTION
The postlog command implements a Postfix-compatible logging interface for use in, for example, shell scripts. By default, postlog logs the text given on the command line as one record. If no text is specified on the command line, postlog reads from standard input and logs each input line as one record. Logging is sent to syslogd(8); when the standard error stream is connected to a terminal, logging is sent there as well. The following options are implemented: -c config_dir Read the main.cf configuration file in the named directory instead of the default configuration directory. -i Include the process ID in the logging tag. -p priority Specifies the logging severity: info (default), warn, error, fatal, or panic. -t tag Specifies the logging tag, that is, the identifying name that appears at the beginning of each logging record. -v Enable verbose logging for debugging purposes. Multiple -v options make the software increasingly verbose. SEE ALSO
syslogd(8) syslog daemon. LICENSE
The Secure Mailer license must be distributed with this software. AUTHOR(S) Wietse Venema IBM T.J. Watson Research P.O. Box 704 Yorktown Heights, NY 10598, USA POSTLOG(1)

Check Out this Related Man Page

POSTLOG(1)						      General Commands Manual							POSTLOG(1)

NAME
postlog - Postfix-compatible logging utility SYNOPSIS
postlog [-iv] [-c config_dir] [-p priority] [-t tag] [text...] DESCRIPTION
The postlog(1) command implements a Postfix-compatible logging interface for use in, for example, shell scripts. By default, postlog(1) logs the text given on the command line as one record. If no text is specified on the command line, postlog(1) reads from standard input and logs each input line as one record. Logging is sent to syslogd(8); when the standard error stream is connected to a terminal, logging is sent there as well. The following options are implemented: -c config_dir Read the main.cf configuration file in the named directory instead of the default configuration directory. -i Include the process ID in the logging tag. -p priority Specifies the logging severity: info (default), warn, error, fatal, or panic. -t tag Specifies the logging tag, that is, the identifying name that appears at the beginning of each logging record. A default tag is used when none is specified. -v Enable verbose logging for debugging purposes. Multiple -v options make the software increasingly verbose. ENVIRONMENT
MAIL_CONFIG Directory with the main.cf file. CONFIGURATION PARAMETERS
The following main.cf parameters are especially relevant to this program. The text below provides only a parameter summary. See postconf(5) for more details including examples. config_directory (see 'postconf -d' output) The default location of the Postfix main.cf and master.cf configuration files. syslog_facility (mail) The syslog facility of Postfix logging. syslog_name (see 'postconf -d' output) The mail system name that is prepended to the process name in syslog records, so that "smtpd" becomes, for example, "postfix/smtpd". SEE ALSO
postconf(5), configuration parameters syslogd(8), syslog daemon LICENSE
The Secure Mailer license must be distributed with this software. AUTHOR(S) Wietse Venema IBM T.J. Watson Research P.O. Box 704 Yorktown Heights, NY 10598, USA POSTLOG(1)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

syslogging issues

i'm having some problems with syslogging. i figured out how to allow logging from a specific host (my webramp). syslogd -a ipaddress subnetmask first, what file do the logs go to? second, is there anyway i can save the webramp logs into another file? (13 Replies)
Discussion started by: xyyz
13 Replies

2. Shell Programming and Scripting

Capturing text between ()

Heyo all, I'm looking for the most effective way to capture the text in between a set of parenthesis. For example, my input is this(IBM WebSphereMQ Queue Manager Status): QMNAME(Q1) STATUS(Ended immediately) QMNAME(Q2) ... (7 Replies)
Discussion started by: sysera
7 Replies

3. Shell Programming and Scripting

input a line at the beginning of every file in a directory?

if need to input a word or anything at the beginning of every file in a directory. how do i accomplish this? say the file is named hyperten. how do i make hyperten the first line of every file in a given directory? thanks (6 Replies)
Discussion started by: Terrible
6 Replies

4. Shell Programming and Scripting

SED help

Hi guys I am trying to append a switch to a line in an rc file, but it doesnt seem to be working: when i run this command : cat rc.tcpip |sed "s/syslogd "$src_running" /syslogd "$src_running" "-N" /" it still reads: start /usr/sbin/syslogd "$src_running" Any ideas - I've tried every... (9 Replies)
Discussion started by: serm
9 Replies

5. Shell Programming and Scripting

How do you buffer streamed lines?

If I am running a cat|awk|sed on a file to get a bunch of numbers between 1 and 500 billion, how can I stay in stream, and still compare "this value" with "the previous value"? Really I could do this all in Perl, but if I can get it to work in-stream, its gonna be TONS faster... even if I can... (14 Replies)
Discussion started by: jjinno
14 Replies

6. Shell Programming and Scripting

Append text at end of the first line in a file

Hi I need to append some text @ end of the first line in a file. like myfile.txt list = a,b,c list.a=some.. I give the arg "d" . now it append at end of first line list=a,b,c,d list.a=some... Please help me out this (7 Replies)
Discussion started by: catgovind
7 Replies

7. Shell Programming and Scripting

Multi record

I have fixed width source file data look like this, J510111112222 J5102ABCD J510133334444 J5102EFGH I want to make this like 11112222J510111112222 11112222J5102ABCD 33334444J510133334444 33334444J5102EFGH Bolded is the record type. Thanks for help. (8 Replies)
Discussion started by: saravanamr
8 Replies

8. Shell Programming and Scripting

Need help with script.

Hi: I am using linux and trying to format logs. I have grepped for stuff like invalid users and /or error. However, the way the logs are formatted, sometimes the full error is not on the line, ie. it is on the next line. If I grep something, like: cat /var/spool/mail/* |grep -i session |awk... (8 Replies)
Discussion started by: taekwondo
8 Replies

9. Shell Programming and Scripting

Help with implementing logging

I'm trying to add logging to an existing script which echos a number of lines to the screen. I've added a switch to the script that is going to suppress much of this output and put it in a file instead. The way I envisioned it was like this: $log would be set to either "" or the log files... (8 Replies)
Discussion started by: cheetobandito
8 Replies

10. Shell Programming and Scripting

Include white spaces while using CUT command

Hi I tried to extract 19 characters (default) enclosed with in tag from a file using cut command. If the characters comprises of double space, the cut command gives the output with a single spacing. file 1 <name>Kumar Rajasekaran</name> cut -c7-26 "file1" the out put i received is ... (48 Replies)
Discussion started by: Sekar1
48 Replies

11. Programming

Efficient logging of time measurements

Hi all, I am working on a software, which was developed using C programming on unix environment. I have added certain functionality to the software. Now, I interested in measuring time taken by new functionality (Mean value of huge amount of tests). Since new function will be part of many... (14 Replies)
Discussion started by: tamil.pamaran
14 Replies

12. Shell Programming and Scripting

Question /help understanding vi logs ?

Experts, I have a question. Where are the vi logs are being stored. For example: any command used within vi editor using :! ,(ex: :! pwd ex: :! ls -l ), so where the vi writes the command logs , dont see in .sh_history file so wondering. Shell: /usr/bin/ksh Thanks, (7 Replies)
Discussion started by: rveri
7 Replies

13. Shell Programming and Scripting

User Logging

Hi, I have several engineers logging into servers with the same system username and passwords eg root. I was thinking about adding a script to bashrc where a user is forced upon login to enter their name and once that has executed there history is logged/redirected to a log file somewhere. I... (10 Replies)
Discussion started by: maxwellhouse
10 Replies

14. Shell Programming and Scripting

Lookup Within a file

A text file has two logs of same event & both logs have to be correlated into a single line before same can be processed further RAW OPERATING LOG Date Month Year Time Event 10 JAN 2014 1000 4 11 APR 2013 1230 2 12 FEB 2014 ... (7 Replies)
Discussion started by: newageBATMAN
7 Replies

15. AIX

AIX: How to find down who enter a command?

Hi I'm working on AIX. My question: for example, I'm logging in. I enter command "last" and then I know there are 3 people logging in from 3 different IP at the same time, 2 are in the same account. Then someone enters a command. Is there any way to know exactly who ( which IP ) enters... (9 Replies)
Discussion started by: bobochacha29
9 Replies