jcabrerizo opened a new pull request #1188:
URL: https://github.com/apache/brooklyn-server/pull/1188


   This provides the backend for expose the server logs from two different 
logstore implementation:
   - Static logfiles
   - A ElasticSearch instance
   
   The API and the LogStore interface only exposes a query method that expect 
the parameters from the UI (PR TBD) and returns a list of POJO representing 
each entry found on the configured LogStore implementation.
   
   The configuration for each LogStore implementation has to be added to the 
`brooklyn.cfg` file:
   
   For ElasticSearch:
   ```
   brooklyn.logbook.logStore = 
org.apache.brooklyn.util.core.logbook.opensearch.OpenSearchLogStore
   brooklyn.logbook.openSearchLogStore.host = https://localhost:9200
   brooklyn.logbook.openSearchLogStore.index = brooklyn
   brooklyn.logbook.openSearchLogStore.user = admin
   brooklyn.logbook.openSearchLogStore.password = admin
   brooklyn.logbook.openSearchLogStore.verifySSl = false
   ```
   For the plain log file:
   ```
   brooklyn.logbook.logStore = 
org.apache.brooklyn.util.core.logbook.file.FileLogStore
   brooklyn.logbook.fileLogStore.path = /var/logs/brooklyn/brooklyn.debug.log
   ```
   
   There are some pending tasks to be implemented:
   
   - [ ] Add more unit test
   - [ ] Improve the plain log implementation
   - [ ] Add "tail" behaviour to keep updating the ui with new entries 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to