FluidFox - Real-time log monitoring in your browser based in NarrativeScience/Log.io
WARNING: FluidFox its not yet production ready, use it with caution.
npm i -g fluidfox
And you are ready, execute fluidfox
to see the help page.
- Create or edit a json file where your server configuration is going to live.
> cat server.json
{
"port": 28777
}
- Run the server.
fluidfox server server.json
- Create or edit a json file where your harvester configuration is going to live.
> cat harvester.json
{
"nodeName": "application_server",
"logStreams": {
"application1": [
{
"name": "Custom name",
"file": "/var/logs/obscure_file_name.log"
}
],
"nginx": [
"/var/log/nginx/access.log",
"/var/log/nginx/error.log"
]
},
"server": {
"host": "your_server_here",
"port": 28777
}
}
- Run the harvester.
fluidfox harvester harvester.json
Harvester will connect to the server and watch your files, when a file is modified, the new lines will be sended to the server.
- Create or edit a json file where your client configuration is going to live.
> cat web.json
{
"port": 8080,
"server": {
"ip": "your_server_here",
"port": 28777
}
}
- Run the web server.
fluidfox web web.json
- Browse to the IP/domain of the web server and access with the configured port, example http://127.0.0.1/8080