doc: update unix socket

pull/2559/head
Victor Julien 10 years ago
parent 8fde6f967f
commit 71607c905a

@ -4,14 +4,14 @@ Interacting via Unix Socket
Introduction Introduction
------------ ------------
Since 1.4 version, Suricata can listen to a unix socket and accept Suricata can listen to a unix socket and accept commands from the user. The
commands from the user. The exchange protocol is JSON-based and the exchange protocol is JSON-based and the format of the message has been done
format of the message has been done to be generic and it is described to be generic.
in this commit message. An example script called suricatasc is
provided in the source and installed automatically when updating
Suricata.
The unix socket is disabled by default. An example script called suricatasc is provided in the source and installed
automatically when installing/updating Suricata.
The unix socket is enabled by default if libjansson is available.
You need to have libjansson installed: You need to have libjansson installed:
@ -19,15 +19,14 @@ You need to have libjansson installed:
* libjansson-dev - C library for encoding, decoding and manipulating JSON data (dev) * libjansson-dev - C library for encoding, decoding and manipulating JSON data (dev)
* python-simplejson - simple, fast, extensible JSON encoder/decoder for Python * python-simplejson - simple, fast, extensible JSON encoder/decoder for Python
:: Debian/Ubuntu::
apt-get install libjansson4 libjansson-dev python-simplejson apt-get install libjansson4 libjansson-dev python-simplejson
If libjansson is present on the system , unix socket will be compiled If libjansson is present on the system , unix socket will be compiled
in automatically - when you use "--enable-unix-socket" in your in automatically.
configure line.
The creation of the socket is activated by setting enabled to yes The creation of the socket is managed by setting enabled to 'yes' or 'auto'
under unix-command in Suricata YAML configuration file: under unix-command in Suricata YAML configuration file:
:: ::

Loading…
Cancel
Save