Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using FreeBSD 8.3 and syslog server is running on it. now i have configured my syslog server to send logs to remote server by simply adding these lines in /etc/syslog.conf file

*.notice;kern.debug;;mail.crit;                         @
news.err;local0.none;local3.none;local7.none                    @
security.*                                                      @;;                             @
*.emerg                                                         @ 

where is my remote host IP address, it's sending the logs to remote host on UDP, but I want to send logs in JSON format and on TCP. Is it possible?

share|improve this question
This sounds like an XY problem, now what is it you are really trying to achieve? – HBruijn Jul 9 '14 at 11:29

I wouldn't. That's not what syslog is for.

What I would suggest instead is to have a look at logstash - which is a tool for parsing syslogs and aggregating them to a database in JSON format.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.