0

loglyze に取り組んでいます。このツールのドキュメントは非常に限られています。ほとんどのことを実行しましたが、アラートを追加できません。

以下は、イベント定義のサンプル xml ファイルです。

<?xml version="1.0" encoding="UTF-8"?>
<tns:definitions xmlns:tns="http://logalyze.com" xmlns:xsi="http://www.w3.org   /2001/XMLSchema-instance" xsi:schemaLocation="http://logalyze.com http://repository.logalyze.com/logalyze-definitions-1.0.xsd ">
        <tns:eventdef version="1" id="a4151076-152c-11e1-91a4-0018de9d251b">
                <tns:name>Critical event Mod Sec</tns:name>
                <tns:description>Mod Sec</tns:description>
                <tns:vendor>LOGalyze</tns:vendor>
                <tns:group></tns:group>
                <tns:rule>SingleWithThreshold</tns:rule>
                <tns:criteria>
                        <tns:criterion>
                                <tns:field>_tag</tns:field>
                                <tns:operator>=</tns:operator>
                                <tns:value>mod_sec_warn</tns:value>
                        </tns:criterion>
                </tns:criteria>
                <tns:desc>3 login failures within 1m for user ${user_name}</tns:desc>
                <tns:window>60</tns:window>
                <tns:thresh>3</tns:thresh>
                <tns:actions>
                        <tns:action type="event">
                                <tns:prop>
                                        <tns:key>field:msg</tns:key>
                                        <tns:value>3 login failures within 1m for user ${user_name}</tns:value>
                                </tns:prop>
                                <tns:prop>
                                        <tns:key>field:user_name</tns:key>
                                        <tns:value/>
                                </tns:prop>
                                <tns:prop>
                                        <tns:key>field:loghostname</tns:key>
                                        <tns:value/>
                                </tns:prop>
                                <tns:prop>
                                        <tns:key>field:_priority</tns:key>
                                        <tns:value>high</tns:value>
                                </tns:prop>
                        </tns:action>
                </tns:actions>
        </tns:eventdef>
</tns:definitions>

ありがとうInfosec.pk

4

1 に答える 1