/usr/local/bin/suricata: error while loading shared libraries: libhtp.so.2: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "/usr/local/bin/suricata-update", line 33, in <module>
sys.exit(main.main())
File "/usr/local/lib/python3.8/dist-packages/suricata/update/main.py", line 1307, in main
sys.exit(_main())
File "/usr/local/lib/python3.8/dist-packages/suricata/update/main.py", line 1017, in _main
config.init(args)
File "/usr/local/lib/python3.8/dist-packages/suricata/update/config.py", line 202, in init
build_info = suricata.update.engine.get_build_info(_config["suricata"])
File "/usr/local/lib/python3.8/dist-packages/suricata/update/engine.py", line 43, in get_build_info
build_info_output = subprocess.check_output([suricata, "--build-info"])
File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/usr/local/bin/suricata', '--build-info']' returned non-zero exit status 127.
I am getting same even if I simply run : suricata-update
This is the reason the error is occurring. Run ldd /usr/local/bin/suricata | grep libhtp and paste your results here.
You can configure Suricata to use a bundled libhtp or specify the location of the libhtp library. Suricata depends/requires libhtp to execute properly.
@Jeff_Lucovsky also wanted to know where I can see suricata logs . I added a plugin for kafka . It creates a topic but don’t send any data , where I can see logs generated by suricata for these events
Your plugin will determine what happens to the data and where it is logged.
Without any plugins, Suricata uses the information from the outputs configuration section in the eve-log area.
The default-log-dir setting determines where the log files will be placed (this can be overridden with the -l /path/to/log-directory command line option.
Try using a regular file as in the default config. Verify that works before attempting to log to Kafka, but please start a new topic here for Kafka, then maybe the people who can help with Kafka will see it.