Manojkumar Khotele
Manojkumar Khotele

Reputation: 1019

How to make rsyslog tcpflood?

I have setup a rsyslog-server and want to test it. I am following link how-to-use-tcpflood for it.

This link says, "This tool is included in the local rsyslog folder in ‘tests’". What does it mean by local rsyslog folder? I have rsyslog (v 8.24.0-0adiscon2xenial1) installed on ubuntu machine; but it does not have any folder named "tests".

Assuming that, it might be the source code from github for rsyslog, I cloned https://github.com/rsyslog/rsyslog.git. The project does contain folder "tests". I run "make tcpflood" as instructed. But it fails.

~/rsyslog/tests$ make tcpflood
cc     tcpflood.c   -o tcpflood
tcpflood.c:86:20: fatal error: config.h: No such file or directory
compilation terminated.
<builtin>: recipe for target 'tcpflood' failed
make: *** [tcpflood] Error 1

What I am missing? How can I get tcpflood running?

Upvotes: 1

Views: 1000

Answers (1)

Rainer Gerhards
Rainer Gerhards

Reputation: 178

Tcpflood is a testing tool that does not exist in a package as the OP suspected. As such, a build from source needs to be done. This is described here: http://www.rsyslog.com/doc/master/installation/install_from_source.html

Once the initial steps are done, you can build the tcpflood tool. Obviously, it probably makes sense to create a package for this...

Upvotes: 1

Related Questions