I have setup the syslog-ng server to accept log messages from remote host through syslogd in Linux and Snare in Windows platform. After successfully implementing this, I started to configure hosts to send the log messages to the central syslog-ng server. During this, it was found that the remote servers were able to send messages successfully but the messages logged had IP address in place of hostname.
To install/enable Json support for PHP on a Linux server, follow the below steps:
1. Install php-pear and gcc
# yum install php-pear gcc
2. Install json module
# pecl install json