简体   繁体   English

如何对auth.log进行snort stop alert?

[英]How do I make snort stop alerting to auth.log?

I can't seem to get snort to stop logging to syslog (auth.log specifically). 我似乎无法停止记录到syslog的声音(特别是auth.log)。 As far as I can tell it seems to be acting as if I'm running with the -s argument or with output alert_syslog: LOG_AUTH LOG_ALERT in the config. 据我所知,它似乎在运行-s参数或配置中的output alert_syslog: LOG_AUTH LOG_ALERT

I'm running snort 2.9.7.0 compiled with ./configure --enable-reload , and unless there is some hidden option I'm missing, I'm telling it to log to merged.log as unified2, and no place else. 我正在运行使用./configure --enable-reload编译的snort 2.9.7.0,除非我缺少一些隐藏的选项,否则我要告诉它以Unified2身份登录到merged.log,而没有其他地方。

snort@snort:~$ ps -ef | grep snort
snort     7524     1  1 18:15 ?        00:00:00 /usr/bin/snort -c /etc/snort/snort.conf -i bond0.566 -l /var/log/snort/bond0.566 -D

snort@snort:~$ grep -R '^output' /etc/snort
/etc/snort/snort.conf:output unified2: filename merged.log, limit 128, mpls_event_types, vlan_event_types

Here are some of the logs that I'm seeing 这是我看到的一些日志

snort@snort:~$ tail -n 10 /var/log/auth.log
Feb 10 18:31:15 snort.example.com snort[32353]: [119:31:1] http_inspect: UNKNOWN METHOD [Classification: Unknown Traffic] [Priority: 3]: <bond0.566> {TCP} xxx.xxx.xxx.xxx:32271 -> xxx.xxx.xxx.xxx:80
Feb 10 18:31:15 snort.example.com snort[32353]: [119:31:1] http_inspect: UNKNOWN METHOD [Classification: Unknown Traffic] [Priority: 3]: <bond0.566> {TCP} xxx.xxx.xxx.xxx:32271 -> xxx.xxx.xxx.xxx:80
Feb 10 18:31:15 snort.example.com snort[32353]: [129:12:1] stream5: TCP Small Segment Threshold Exceeded [Classification: Potentially Bad Traffic] [Priority: 2]: <bond0.566> {TCP} xxx.xxx.xxx.xxx:56534 -> xxx.xxx.xxx.xxx:443
Feb 10 18:31:15 snort.example.com snort[32353]: [129:12:1] stream5: TCP Small Segment Threshold Exceeded [Classification: Potentially Bad Traffic] [Priority: 2]: <bond0.566> {TCP} xxx.xxx.xxx.xxx:56534 -> xxx.xxx.xxx.xxx:443
Feb 10 18:31:15 snort.example.com snort[32353]: [129:12:1] stream5: TCP Small Segment Threshold Exceeded [Classification: Potentially Bad Traffic] [Priority: 2]: <bond0.566> {TCP} xxx.xxx.xxx.xxx:53271 -> xxx.xxx.xxx.xxx:443
Feb 10 18:31:15 snort.example.com snort[32353]: [129:12:1] stream5: TCP Small Segment Threshold Exceeded [Classification: Potentially Bad Traffic] [Priority: 2]: <bond0.566> {TCP} xxx.xxx.xxx.xxx:53271 -> xxx.xxx.xxx.xxx:443
Feb 10 18:31:15 snort.example.com snort[32353]: [129:5:1] stream5: Bad segment, overlap adjusted size less than/equal 0 [Classification: Potentially Bad Traffic] [Priority: 2]: <bond0.566> {TCP} xxx.xxx.xxx.xxx:53271 -> xxx.xxx.xxx.xxx:443
Feb 10 18:31:15 snort.example.com snort[32353]: [129:5:1] stream5: Bad segment, overlap adjusted size less than/equal 0 [Classification: Potentially Bad Traffic] [Priority: 2]: <bond0.566> {TCP} xxx.xxx.xxx.xxx:53271 -> xxx.xxx.xxx.xxx:443
Feb 10 18:31:15 snort.example.com snort[32353]: [129:12:1] stream5: TCP Small Segment Threshold Exceeded [Classification: Potentially Bad Traffic] [Priority: 2]: <bond0.566> {TCP} xxx.xxx.xxx.xxx:2443 -> xxx.xxx.xxx.xxx:80
Feb 10 18:31:15 snort.example.com snort[32353]: [129:12:1] stream5: TCP Small Segment Threshold Exceeded [Classification: Potentially Bad Traffic] [Priority: 2]: <bond0.566> {TCP} xxx.xxx.xxx.xxx:2443 -> xxx.xxx.xxx.xxx:80

Most of these alerts are garbage that I will filter out later, the alerts themselves don't bother me, what bothers me is that they are going to auth.log and I can't figure out why. 这些警报大多数都是垃圾,以后会过滤掉,警报本身不会打扰我,令我困扰的是它们将进入auth.log,我不知道为什么。

I would check to make sure that snort is actually the responsible process for generating those logs. 我将检查以确保snort实际上是生成这些日志的负责任过程。 I've seen cases where barnyard2 appears in the logs as if it was snort generating the logs, which would throw anyone off. 我已经看到了barnyard2出现在日志中的情况,好像它是snort生成日志,这会让任何人失望。 In /etc/barnyard2.conf, or whatever your config file is, you will probably see a line telling to send alerts to syslog, much like this: 在/etc/barnyard2.conf或任何配置文件中,您可能会看到一行提示将警报发送到syslog的信息,就像这样:

output alert_syslog: LOG_AUTH LOG_INFO

You'll want to edit that line so barnyard2 will log how you want it to. 您将需要编辑该行,以便barnyard2记录您想要的行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM