Syslog formatting issue | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Syslog formatting issue

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-06-2013
Pra Pra is offline
Registered User
 
Join Date: Dec 2013
Last Activity: 9 December 2013, 2:48 AM EST
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Syslog formatting issue

Hi,

I am using log4j syslog appender to redirect the application logs to the solaris syslog.
However, I am facing issue in formatting. It is not able to interpret new line characters and is printing \n as it is.

Ex: Following is getting written into the syslog file.

Code:
 
"[ExceptionList]\n [RecoverableException ('MQROOT')]\n File = '/build
/S700_P/src/DataFlowEngine/PluginInterface/ImbJniNode.cpp' (String)\n Line = '1258' (Integer)\n Function = 'ImbJni
Node"

I know in Linux (Ubuntu) we have option to escape the control characters by specifying below option in syslog config file.

Code:
"$EscapeControlCharactersOnReceive off"

Please let me know if we have similar option in Solaris? how to resolve this please help

Last edited by vbe; 12-06-2013 at 11:18 AM.. Reason: code tags
Sponsored Links
    #2  
Old 12-06-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 29 August 2014, 5:00 PM EDT
Location: Southern NJ, USA (Nord)
Posts: 4,409
Thanks: 8
Thanked 538 Times in 516 Posts
syslog does not have the extensions of rsyslogd: http://www.rsyslog.com/doc/rsconf1_e...onreceive.html
Sponsored Links
    #3  
Old 12-09-2013
Pra Pra is offline
Registered User
 
Join Date: Dec 2013
Last Activity: 9 December 2013, 2:48 AM EST
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Is there any other setting/configuration that we can do in syslog to interpret escape characters and print newline characters (\n) properly?
    #4  
Old 12-11-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 29 August 2014, 5:00 PM EDT
Location: Southern NJ, USA (Nord)
Posts: 4,409
Thanks: 8
Thanked 538 Times in 516 Posts
Postprocessing is the usual thing, or running rsyslogd.
Sponsored Links
    #5  
Old 12-11-2013
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
who?
 
Join Date: Dec 2003
Last Activity: 31 August 2014, 11:02 AM EDT
Location: /dev/ph
Posts: 4,787
Thanks: 63
Thanked 424 Times in 393 Posts
Quote:
Originally Posted by Pra View Post
Is there any other setting/configuration that we can do in syslog to interpret escape characters and print newline characters (\n) properly?
Not in Solaris 10 or earlier syslog.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Syslog.conf issue jnojr BSD 5 11-11-2013 03:20 PM
email from *nix to Exchange - text formatting issue edstevens Windows & DOS: Issues & Discussions 6 08-27-2012 07:55 PM
Need solution to formatting issue flamingo_l Shell Programming and Scripting 0 03-11-2011 01:15 AM
Space formatting issue in sed mady135 Shell Programming and Scripting 8 11-02-2010 05:13 AM
Formatting issue mady135 Shell Programming and Scripting 1 11-02-2010 03:48 AM



All times are GMT -4. The time now is 05:10 AM.