aboutsummaryrefslogtreecommitdiffstats
path: root/config/syslog-ng/syslog-ng.xml
diff options
context:
space:
mode:
Diffstat (limited to 'config/syslog-ng/syslog-ng.xml')
-rw-r--r--config/syslog-ng/syslog-ng.xml192
1 files changed, 192 insertions, 0 deletions
diff --git a/config/syslog-ng/syslog-ng.xml b/config/syslog-ng/syslog-ng.xml
new file mode 100644
index 00000000..dbdd4a8d
--- /dev/null
+++ b/config/syslog-ng/syslog-ng.xml
@@ -0,0 +1,192 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!DOCTYPE packagegui SYSTEM "../schema/packages.dtd">
+<?xml-stylesheet type="text/xsl" href="../xsl/package.xsl"?>
+<packagegui>
+ <copyright>
+ <![CDATA[
+/* $Id$ */
+/* ========================================================================== */
+/*
+ syslog-ng.xml
+ part of pfSense (http://www.pfSense.com)
+ Copyright (C) 2012 Lance Leger
+ All rights reserved.
+ */
+/* ========================================================================== */
+/*
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
+ AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
+ OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+ */
+/* ========================================================================== */
+ ]]>
+ </copyright>
+ <description>Describe your package here</description>
+ <requirements>Describe your package requirements here</requirements>
+ <faq>Currently there are no FAQ items provided.</faq>
+ <name>Syslog-ng</name>
+ <version>3.3.4_1</version>
+ <title>Services: Syslog-ng</title>
+ <include_file>/usr/local/pkg/syslog-ng.inc</include_file>
+ <menu>
+ <name>Syslog-ng</name>
+ <tooltiptext>Setup Syslog-ng</tooltiptext>
+ <section>Services</section>
+ <url>/syslog-ng_log_viewer.php</url>
+ </menu>
+ <service>
+ <name>syslog-ng</name>
+ <rcfile>syslog-ng.sh</rcfile>
+ <executable>syslog-ng</executable>
+ </service>
+ <tabs>
+ <tab>
+ <text>General</text>
+ <url>/pkg_edit.php?xml=syslog-ng.xml&amp;id=0</url>
+ <active/>
+ </tab>
+ <tab>
+ <text>Advanced</text>
+ <url>/pkg.php?xml=syslog-ng_advanced.xml</url>
+ </tab>
+ <tab>
+ <text>Log Viewer</text>
+ <url>/syslog-ng_log_viewer.php</url>
+ </tab>
+ </tabs>
+ <additional_files_needed>
+ <prefix>/usr/local/pkg/</prefix>
+ <chmod>0755</chmod>
+ <item>http://www.pfsense.com/packages/config/syslog-ng/syslog-ng.inc</item>
+ </additional_files_needed>
+ <additional_files_needed>
+ <prefix>/usr/local/pkg/</prefix>
+ <chmod>0755</chmod>
+ <item>http://www.pfsense.org/packages/config/syslog-ng/syslog-ng_advanced.xml</item>
+ </additional_files_needed>
+ <additional_files_needed>
+ <prefix>/usr/local/www/</prefix>
+ <chmod>0755</chmod>
+ <item>http://www.pfsense.org/packages/config/syslog-ng/syslog-ng_log_viewer.php</item>
+ </additional_files_needed>
+ <fields>
+ <field>
+ <fielddescr>Enable</fielddescr>
+ <fieldname>enable</fieldname>
+ <type>checkbox</type>
+ <description>Select this option to enable syslog-ng</description>
+ </field>
+ <field>
+ <fielddescr>Interface Selection</fielddescr>
+ <fieldname>interfaces</fieldname>
+ <type>interfaces_selection</type>
+ <description>Select interfaces you want to listen on</description>
+ <required/>
+ <multiple/>
+ </field>
+ <field>
+ <fielddescr>Default Protocol</fielddescr>
+ <fieldname>default_protocol</fieldname>
+ <description>Select the default protocol you want to listen on</description>
+ <type>select</type>
+ <value>udp</value>
+ <options>
+ <option><name>UDP</name><value>udp</value></option>
+ <option><name>TCP</name><value>tcp</value></option>
+ </options>
+ <required/>
+ </field>
+ <field>
+ <fielddescr>Default Port</fielddescr>
+ <fieldname>default_port</fieldname>
+ <type>input</type>
+ <description>Enter default port number you want to listen on</description>
+ <default_value>514</default_value>
+ <required/>
+ </field>
+ <field>
+ <fielddescr>Default Log Directory</fielddescr>
+ <fieldname>default_logdir</fieldname>
+ <type>input</type>
+ <description>Enter default log directory (no trailing slash)</description>
+ <default_value>/var/syslog-ng</default_value>
+ <required/>
+ </field>
+ <field>
+ <fielddescr>Default Log File</fielddescr>
+ <fieldname>default_logfile</fieldname>
+ <type>input</type>
+ <description>Enter default log file</description>
+ <default_value>default.log</default_value>
+ <required/>
+ </field>
+ <field>
+ <fielddescr>Archive Frequency</fielddescr>
+ <fieldname>archive_frequency</fieldname>
+ <description>Select the frequency to archive (rotate) log files</description>
+ <type>select</type>
+ <value>daily</value>
+ <options>
+ <option><name>Daily</name><value>daily</value></option>
+ <option><name>Weekly</name><value>weekly</value></option>
+ <option><name>Monthly</name><value>monthly</value></option>
+ </options>
+ <required/>
+ </field>
+ <field>
+ <fielddescr>Compress Archives</fielddescr>
+ <fieldname>compress_archives</fieldname>
+ <type>checkbox</type>
+ <description>Select this option to compress archived log files</description>
+ </field>
+ <field>
+ <fielddescr>Compress Type</fielddescr>
+ <fieldname>compress_type</fieldname>
+ <description>Select the type of compression for archived log files</description>
+ <type>select</type>
+ <value>gz</value>
+ <options>
+ <option><name>Gzip</name><value>gz</value></option>
+ <option><name>Bzip2</name><value>bz2</value></option>
+ </options>
+ </field>
+ <field>
+ <fielddescr>Max Archives</fielddescr>
+ <fieldname>max_archives</fieldname>
+ <type>input</type>
+ <description>Enter the number of max archived log files</description>
+ <default_value>30</default_value>
+ <required/>
+ </field>
+ </fields>
+ <custom_php_validation_command>
+ syslogng_validate_general($_POST, &amp;$input_errors);
+ </custom_php_validation_command>
+ <custom_php_resync_config_command>
+ syslogng_resync();
+ </custom_php_resync_config_command>
+ <custom_php_install_command>
+ syslogng_install_command();
+ </custom_php_install_command>
+ <custom_php_deinstall_command>
+ syslogng_deinstall_command();
+ </custom_php_deinstall_command>
+ <filter_rules_needed>syslogng_generate_rules</filter_rules_needed>
+</packagegui>