-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zeek-Kafka not installed properly , error in tests #37
Comments
@cybersecurity99 Hmm I ran our end to end tests on Ubuntu 20.04 with Zeek 4.0.5 and it seems to be working. Are you seeing anything substantially different between your environment and what we are doing in Docker? |
@JonZeolla I am not using Docker , I have tried this in Multiple VM . I am facing this in all attempts also if I install after failed test I get this when checking installation
Is this any configuration file or logs which I can check to see real reason for error |
@cybersecurity99 are you using the right version of librdkafka? We only currently support 1.4.2 or 1.4.4 |
@JonZeolla , yes I guess I downloaded from apt install librdkafka-dev. |
@cybersecurity99 at a quick glance that may be installing the wrong version of librdkafka. May be looking at the wrong thing via my phone. https://ubuntu.pkgs.org/20.04/ubuntu-universe-arm64/librdkafka-dev_1.2.1-1ubuntu1_arm64.deb.html You could use a modified version of https://github.com/JonZeolla/Development/blob/76d4bc84e222544baec9e8269d71f3cfa55c0869/python/librdkafka_version_checker.py to check the version you have on disk, or more simply you could just use apt/dpkg. I'm not sure why this package would create different logs on disk than you already had... @ottobackwards any idea on that one |
Hi @JonZeolla
Also you pointed out that 1.4.2 and 1.4.4 is supported so , we don't need to download librdkafka from apt ? Just that tar file and steps mentioned in 1st point are enough to run.
After doing so and reinstalling zeek-kafka I found that data was sent to kafka and only 1 log was generated in /logs/current/ folder that is .crash-diag.out which contained following info
What it shows ? Also how to do we differentiate data in zeek kafka topic like http.log , conn.log ,etc Edit |
@cybersecurity99 wait you're running Zeek 5? That's definitely not supported yet. Also, correct librdkafka 1.8.2 isn't supported If updating your versions fixes things please close this issue, otherwise let me know and we can continue to troubleshoot. |
@JonZeolla Still same issue it is sending data to kafka |
@cybersecurity99 just to be clear, it is sending logs to Kafka like you want, but it is also storing them on disk and you want to disable that? This project adds the ability to send logs to Kafka, it doesn't replace any local log writing, but you can disable that separately. I suggest you check out https://docs.zeek.org/en/master/frameworks/logging.html#terminology and go from there |
@JonZeolla okay got that part. Just wanna know if send all logs together. How do we differentiate between http.log,conn.log ,etc at kafka end . |
@cybersecurity99 I think you're looking for something like |
Summary of the issue
...
I tried to install zeek-kafka but it failed
Expected behavior
...
It should get installed and work
Steps to reproduce
...
installed librdkafka and libsasl2-dev
Then
$ curl -L https://github.com/edenhill/librdkafka/archive/v1.4.2.tar.gz | tar xvz
$ cd librdkafka-1.4.2/
$ ./configure --enable-sasl
$ make
$ sudo make install
Where applicable, consider providing a patch that uses the end to end testing environment.
Logs, errors, etc.
...
root@admin:/usr/local/zeek/bin# ./zkg install seisollc/zeek-kafka
The following packages will be INSTALLED:
zeek/seisollc/zeek-kafka (v1.0.0)
Verify the following REQUIRED external dependencies:
(Ensure their installation on all relevant systems before proceeding):
from zeek/seisollc/zeek-kafka (v1.0.0):
librdkafka ~1.4.2-RC1
Proceed? [Y/n] y
"zeek/seisollc/zeek-kafka" requires a "LIBRDKAFKA_ROOT" value (Path to librdkafka installation tree root):
LIBRDKAFKA_ROOT: /usr/local
Saved answers to config file: /usr/local/zeek/etc/zkg/config
Running unit tests for "zeek/seisollc/zeek-kafka"
error: failed to run tests for zeek/seisollc/zeek-kafka: test_command failed with exit code 1
Proceed to install anyway? [N/y]
Your environment
The text was updated successfully, but these errors were encountered: