QueueHandlerPlugin for YVES - docker/sdk
Hey ho!
I set up Logstash with an extra docker-compose file to read/push log messages from RabbitMq to ElasticSearch in my local development environment.
This works like a charm for ZED using the corresponding QueueHandlerPlugin (\Spryker\Zed\Log\Communication\Plugin\Handler\QueueHandlerPlugin)
How ever, for YVES, there is also a QueueHandlerPlugin (\Spryker\Yves\Log\Plugin\Handler\QueueHandlerPlugin) which can be wired up in <ProjectNamespace>\Yves\Log\LogDependencyProvider::getLogHandlers
But, YVES does not have a connection to RabbitMq by default. Neither in B2B/B2C-Demo-Shop, nor in the Shop-Suite. This is due to missing broker connection details.
So, how is this supposed to work if there is an QueueHandlerPlugin for Yves without any broker connections?
Best regards
David
Answers
-
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,056 ⚖️ - Guardians (admin)
Heyhey @DavidGreiner ,
it seems that our docker-sdk does not set the needed value for the environment variable
SPRYKER_BROKER_CONNECTIONS
for Yves - I dont even know how the cloud would handle this. I just asked the team and will report back once I know more.All the best,
Florian
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,056 ⚖️ - Guardians (admin)
Heyhey,
So, how is this supposed to work if there is an QueueHandlerPlugin for Yves without any broker connections?
For me it seems like sth Spryker prepared in the pre-docker and pre-cloud times. Currently there is no connection possible to RabbitMQ from Yves. This is valid for docker-sdk and Spryker Cloud.
Sorry, its likely not the answer you would hoped for. If you have a specific business need please create an official support ticket. Maybe also link the thread here :)
All the best,
Florian
0 -
Hey Florian! Thanks for your responses!
Yes, thats actually the problem.
We already gone another way by configuring the logstash container to read the entries Spryker writes into application.log
This does what we wanted to achieve.
But maybe someone should clean up the QueueHandler stuff in the core.1 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,056 ⚖️ - Guardians (admin)
I dont know exactly what you are trying, but maybe its also worth looking into https://docs.spryker.com/docs/dg/dev/backend-development/audit-logs/audit-logs.html
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 69 Spryker News
- 896 Developer Corner
- 758 Spryker Development
- 83 Spryker Dev Environment
- 361 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 23 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 68 Spryker Safari Questions
- 50 Random