For the latest apps I’m working I really like the following stack:
Symfony for the backend, basically the administrator interface.
AngularJS for the frontend and UI.
A RESTful API to be consumed by the frontend.
As I’m working with Symfony for a long time I decided to build my backend and administrator based on this PHP framework. For that I use a bundle I’ve written nammed HasheadoAdminBundle, but also I’m playing and experimenting with this EasyAdminBundle written by Javier Eguiluz.
For the frontend I’m using AngularJS, a really cool framework to extend HTML and build rich web applications. There is really good documentation to learn Angular in its own website and it also has a great community.
To build the RESTful API I’m using great Symfony bundles like FOSRestBundle and the JMSSerializerBundle. Here there is a really cool post to see how to build a cool API.
Well, I hope this post help you.
As part of the logging system in a big project I’m working for a long time ago we are using Graylog to storage the logs coming from the application as well as from devices and services.
As you may know Graylog uses ElasticSearch to store the data (logs) and MongoDB to store some metadata and configuration.
For these days we are facing the need to grow our stack and make our logging system more scalable, and also, with the release of Graylog 1.0.1 we decided to build a new and more powerful logging system. Said that, and keeping on mind that we have to maintain the already existing logs, we faced the problem to migrate those existing logs (data) into the new ElasticSeach instance.
After some research on existing tools to do that, we found Elasticsearch-Exporter.
To install Elasticsearch-Exporter:
user@unix:~$ npm install nomnom
user@unix:~$ npm install colors
user@unix:~$ npm install elasticsearch-exporter --production
Then to copy all indices from server A to server B:
user@unix:~$ node exporter.js -a serverA -b serverB
After letting it run for a while, we start seeing messages like:
Processed 4144396 of 10626656 entries (39%)
And that’s. After the process finished we have the existing data in the new Server B. Enjoy it! 😀