Please install in this order.
- Download 2.7.9 (64-bit)
- Install with these options:
- Install for all users
- Customize Python 2.7.9:
- Select Add python.exe to Path
| "0x00": NULL | |
| "0x01": FIN | |
| "0x02": SYN | |
| "0x03": FIN-SYN | |
| "0x08": PSH | |
| "0x09": FIN-PSH | |
| "0x0A": SYN-PSH | |
| "0x0B": FIN-SYN-PSH | |
| "0x10": ACK | |
| "0x11": FIN-ACK |
Please install in this order.
| package main | |
| import ( | |
| "log" | |
| "bufio" | |
| "time" | |
| "os" | |
| "fmt" | |
| "io" | |
| "net" |
| $thres=0.02, .es(index='metricbeat*',metric='max:system.cpu.user.pct').lines(1).if(eq, 0, null).holt(0.9, 0.1, 0.9, 0.5h).color(#eee).lines(10).label('Prediction'), .es(index='metricbeat*',metric='max:system.cpu.user.pct').color(#666).lines(1).label(Actual), .es(index='metricbeat*',metric='max:system.cpu.user.pct').lines(1).if(eq, 0, null).holt(0.9, 0.1, 0.9, 0.5h).subtract(.es(index='metricbeat*',metric='max:system.cpu.user.pct')).abs().if(lt, $thres, null, .es(index='metricbeat*',metric='max:system.cpu.user.pct')).points(10,3,0).color(#c66).label('Anomaly').title('max:system.cpu.user.pct / @rmoff') |
| AUDIT type=%{WORD:audit_type} msg=audit\(%{NUMBER:audit_epoch}:%{NUMBER:audit_counter}\): user pid=%{NUMBER:audit_pid} uid=%{NUMBER:audit_uid} auid=%{NUMBER:audit_audid} subj=%{WORD:audit_subject} msg=%{GREEDYDATA:audit_message} | |
| AUDITLOGIN type=%{WORD:audit_type} msg=audit\(%{NUMBER:audit_epoch}:%{NUMBER:audit_counter}\): login pid=%{NUMBER:audit_pid} uid=%{NUMBER:audit_uid} old auid=%{NUMBER:old_auid} new auid=%{NUMBER:new_auid} old ses=%{NUMBER:old_ses} new ses=%{NUMBER:new_ses} |
| input { | |
| generator { | |
| count => 1 | |
| lines => [ | |
| "qid=ABCD1 first", | |
| "qid=XYZ2 first", | |
| "qid=ABCD1 second", | |
| "qid=XYZ2 second", | |
| "qid=ZZZZ first", | |
| "qid=ABCD1 third" |
| yum install -y wget | |
| wget http://rpms.adiscon.com/v8-stable/rsyslog.repo | |
| mv rsyslog.repo /etc/yum.repos.d/rsyslog.repo | |
| yum info rsyslog --skip-broken | |
| yum install -y rsyslog | |
| rsyslogd -version |
| { | |
| "metrics" : { | |
| "order" : 0, | |
| "template" : "metrics-*", | |
| "settings" : { | |
| "index" : { | |
| "refresh_interval" : "5s" | |
| } | |
| }, | |
| "mappings" : { |
| #!/bin/bash | |
| echo "Building NGINX along with Echo module" | |
| # install prerequisites | |
| yum -y install gcc gcc-c++ make zlib-devel pcre-devel openssl-devel | |
| # download the Echo module | |
| curl -L -O 'https://github.com/openresty/echo-nginx-module/archive/v0.58.tar.gz' | |
| tar -xzvf v0.58.tar.gz && rm v0.58.tar.gz | |
| mv echo-nginx-module-0.58 /tmp/echo-nginx-module |