Closed DominicOram closed 3 years ago
Part one already sort of exists. All genie commands are logged to C:\Instrument\var\logs\genie_python
which is readable from anywhere. However it isn't particularly easy to access or get statistics from.
assigning myself as I think this would be a good work experience project.
Some thoughts:
logging
built-in for logging in genie python anyway, this would be a good opportunity to set it up and use ithttps://github.com/ISISComputingGroup/IBEX/issues/6645 created following on from this
Note that this functionality was not added to the simulation API as it wasn't logging beforehand. This is a replacement and addition to what was previously being logged.
PRs:
To review:
As a note, we can leave it in the code as it silently doesn't push if there is no graylog instance up, it should still log to file. in #6645 we should change this to point to a central instance.
* Can you make a breadcrumb for the wiki page please? * Can you add the 2nd bullet above into wiki page? I couldn't get the graylog server working. I think it's started up correctly: ![image](https://user-images.githubusercontent.com/10086797/126326068-43a567a3-9567-487e-91d7-693fe5a58a2f.png) But I can't get into the web interface: ![image](https://user-images.githubusercontent.com/10086797/126326155-3c196dd9-b6c6-4197-b5ea-00bd46d5dac1.png) When you're back can we have a look at this and make sure the documentation is correct? I also think that a system test would be good, if possible.
you need to use 127.0.0.1 instead of localhost, not sure if its a bug but i had the same issue. i think this could be a docker-port binding issue but it can be explicitly set when deployed.
will finish this ticket up when i have some time
I tried to set up the inputs etc via a content pack but had no luck after a few hours of playing, so we'll have to manually do that on deployment - the wiki page should show instructions on how to add the inputs. I added a breadcrumb as well. will have a go at system testing now
system testing is going to be a pain to do as we need to automatically set up inputs and extractors each time the graylog docker container is started which i haven't managed to successfully do
I added system testing to the creating the central graylog instance ticket
As a developer I would like to know who is using which parts of our API. This would be useful as:
Acceptance Criteria