-
-
Notifications
You must be signed in to change notification settings - Fork 510
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
About the failure of using logstash to synchronize mysql data to manticore #2279
Comments
could you try to use recent release? As string to timestamp conversion was fixed recently. |
Thank you for your reply. I deleted old manticore, and reinstall manticore. Now manticore version is: But when i use logstash sycn mysql data to manticore, there is another errors below: There is no tables when i use "show tables;" in manticore command. |
It appears your issue has to do with the Logstash version you use. Unfortunately, it hasn't been reflected in our documentation that Manticore doesn't support the versions >7.15 as of now. We are going to add the support for the newer versions in the near future. Till that time, the solution for you would be to downgrade your Logstash to a version currently supported by Manticore (7.6-7.15), if that doesn't violate other parts of your work. |
Thanks for your reply. We tried two versions of logstash, 7.15.0 and 7.10.0, but unfortunately, we still could not successfully synchronize MySQL data to the RT table of manticore. This is the error log of version 7.15.0:
This is the error log of version 7.10.0:
|
logstash 7.10.0 works with Manticore - https://play.manticoresearch.com/logstash/ |
@zhangsanhuo try to understand how your case is different from https://play.manticoresearch.com/logstash/ |
I found the reason. It was because of the Raspberry Pi system. When I used the "Linux new5 6.1.0-17-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.69-1 (2023-12-30) x86_64 GNU/Linux" system, there was no problem with logstash synchronization. |
Hello, I found that when the mysql field content is NULL instead of Empty String, importing data to manticore through logstash will report an error: and it will cause the data to be unable to synchronize. I would like to ask if this problem will be fixed? Because there are a lot of Null data in our original database. Thanks in advance for your response. |
Thanks @zhangsanhuo We'll look into it and fix it if we can reproduce. |
Hello, I would like to ask, does manticore support search chain operation? Just like this: my_search[left_index:right_index].query(q1).query(q2).query(q3). Or can only BoolFilter be used for combined search? |
you could use multi query only via SphinxQL interface as described Multi-queries. There is no support of multi query for HTTP REST interface. You could create another ticket at Github with the feature request.
you could use bool JSON search property to combine multiple search conditions but it produces only single result set. Multi query allows to
|
The PHP client supports it somewhat - https://github.com/manticoresoftware/manticoresearch-php#perform-a-search |
@Nick-S-2018 pls try to reproduce it with NULL values. |
I've reproduced the error and created another issue based on this one: #2363 |
Blocked by #2363 |
Could you please add support for manticore fields with bigint attributes and timestamp with Null value? |
Unblocked. |
completed on #2380 |
Confirmation Checklist:
Your question:
Hello Manticore Team,
I hope this message finds you well.
I am currently working on a project where I need to sync data from MySQL to Manticore using Logstash. Despite following the documentation, I have encountered several difficulties and have been unable to achieve the desired outcome.
Logstash Configuration (logstash.conf)
Manticore Configuration (manticore.conf):
Insert data:
INSERT INTO test.t1 (id, name, up_date) VALUES (1, 'test zxf', '2024-06-05 12:47:50');
Issues Encountered
I have read the following documents multiple times:
Despite this, I encountered errors during the synchronization process.
When i start logstash, use "journalctl -xeu logstash" command, found this error below and no data flow to manticore:
Could you please provide guidance or suggestions on how to successfully sync MySQL data to Manticore using Logstash? Specifically, I am interested in understanding:
logstash.conf
andmanticore.conf
) are correct.Thank you very much for your assistance.
Best regards,
Kevin
The text was updated successfully, but these errors were encountered: