LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 08-16-2017, 06:49 AM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 11
Post Syslog-NG and UTF8.


Hello.
I want to know can Syslog-NG support UTF8?
Code:
# syslog-ng --version
syslog-ng 3.5.6
Installer-Version: 3.5.6
Revision: 
Compile-Date: Dec 30 2015 19:57:24
Available-Modules: affile,afprog,afsocket-notls,afsocket-tls,afsocket,afstomp,afuser,basicfuncs,confgen,cryptofuncs,csvparser,dbparser,linux-kmsg-format,syslogformat,system-source,afsql
Enable-Debug: off
Enable-GProf: off
Enable-Memtrace: off
Enable-IPv6: on
Enable-Spoof-Source: on
Enable-TCP-Wrapper: on
Enable-Linux-Caps: on
Enable-Pcre: on
Some file and folder characters are not English.

Thank you so much.
 
Old 08-17-2017, 02:02 AM   #2
balabit
syslog-ng documentation maintainer at BalaBit
 
Registered: Jun 2009
Posts: 16

Rep: Reputation: 2
Hi,
Yes, it should work with syslog-ng. If you have any problems, try a newer version and report the issue on github: https://github.com/balabit/syslog-ng/issues
 
Old 08-19-2017, 06:43 AM   #3
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by balabit View Post
Hi,
Yes, it should work with syslog-ng. If you have any problems, try a newer version and report the issue on github: https://github.com/balabit/syslog-ng/issues
I'm using "CentOS Linux release 7.3.1611 (Core)" and "yum update syslog-ng*" not showed me any update.
Can you tell me the parameter for UTF8?
 
Old 08-22-2017, 02:42 AM   #4
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Any idea?
 
Old 08-23-2017, 02:35 AM   #5
balabit
syslog-ng documentation maintainer at BalaBit
 
Registered: Jun 2009
Posts: 16

Rep: Reputation: 2
Hi,

What parameter do you mean? Internally, syslog-ng represents every message as UTF8. If you write the filenames in your configuration file, that should work. If you use macros in the filenames that contain special characters, then syslog-ng should handle this as well if the incoming message is in UTF8. If it is not, and you want syslog-ng to convert the message to UTF8, then check the UTF-8-related flags options in the syslog-ng source: https://www.balabit.com/documents/sy...tml#idp2420176
 
Old 08-23-2017, 08:12 AM   #6
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by balabit View Post
Hi,

What parameter do you mean? Internally, syslog-ng represents every message as UTF8. If you write the filenames in your configuration file, that should work. If you use macros in the filenames that contain special characters, then syslog-ng should handle this as well if the incoming message is in UTF8. If it is not, and you want syslog-ng to convert the message to UTF8, then check the UTF-8-related flags options in the syslog-ng source: https://www.balabit.com/documents/sy...tml#idp2420176
The filenames in my configuration file? My configuration is:
Code:
options {
        flush_lines (0);
        time_reopen (10);
        log_fifo_size (1000);
        chain_hostnames (off);
        use_dns (no);
        use_fqdn (no);
        create_dirs (no);
        keep_hostname (yes);
        ts_format(iso);
};

source s_netsyslog {
   # system();
   # internal();
   udp(ip(0.0.0.0) port(514) flags(no-hostname));
   tcp(ip(0.0.0.0) port(514) flags(no-hostname));
};
destination d_separatedbyhosts { file("/var/log/$HOST/messages" owner("root") group("root") perm(0655) dir_perm(0755) create_dirs(yes));
};
log { source(s_netsyslog); destination(d_separatedbyhosts); };
@include "/etc/syslog-ng/conf.d/*.conf"
What is the Syslog-NG version for Windows? I mean is agent.

Last edited by hack3rcon; 08-23-2017 at 08:14 AM.
 
  


Reply



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
no syslog after delete syslog file zerop Ubuntu 4 04-26-2016 01:31 PM
syslog-ng -> syslog-ng logging, how to troubleshoot sir-lancealot Linux - Server 1 01-24-2009 06:07 AM
I need help getting syslog to log remotely, this is just the regular syslog. abefroman Linux - Software 2 06-05-2008 11:36 AM
syslog client to log to syslog-ng and itself noir911 Linux - Server 1 02-08-2008 09:51 AM
LXer: Centralized Syslog Server Using syslog-NG LXer Syndicated Linux News 0 04-28-2006 06:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:18 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration