作者:劲吻2502877607 | 来源:互联网 | 2023-08-12 09:14
vim tcp.conf
input {
tcp {
host => "192.168.56.11"
port => "6666"
}
}
output {
stdout {
codec => "rubydebug"
}
}
/opt/logstash/bin/logstash -f tcp.conf
echo "hehe" nc 192.168.56.11 6666
echo "oldboy" > /dev/tcp/192.168.56.11/6666