Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 95 of 807  Not logged in ELOG logo
    icon2.gif   Re: Monitoring a logbook for changes, posted by Tamas Gal on Wed Jan 13 08:37:42 2016 
I recommend monitoring directly on the server. Here is an example of a very simply Python script (https://github.com/tamasgal/elog-slack)
which monitors the files very efficiently and immediately pushes notifications to Slack (slack.com). Just look at the code,
it's pretty straight forward and very easy to adapt it to other (web) services.
    icon2.gif   Re: Monitoring a logbook for changes, posted by Tamas Gal on Wed Jan 13 17:04:34 2016 
I just noticed that there are multiple messages per file, so I have to adapt the parser. I'll update this thread when I'm done!




Johan
Forsberg wrote:



Yeah, I suppose something like that would be both faster and more
    icon2.gif   Re: Monitoring a logbook for changes, posted by Tamas Gal on Wed Jan 13 18:37:32 2016 
Where is this feature documented?




Stefan
Ritt wrote:



You guys know that there is the possibility to execute an arbitrary
    icon2.gif   Re: Monitoring a logbook for changes, posted by Tamas Gal on Wed Jan 13 19:13:47 2016 
I'm probably too tired or I don't know, but of course I looked at the user's guide and the admin's guide but did not found anything about
this ;-) Is there another documention which I missed somehow?




Stefan
    icon2.gif   Re: Monitoring a logbook for changes, posted by Tamas Gal on Wed Jan 13 19:26:35 2016 
OK thanks I'll check that out. I did not configure ELOG by myself, I only use it and wrote the Slack plugin ;-)




Stefan
Ritt wrote:



You look here: http://midas.psi.ch/elog/config.html and scroll
icon5.gif   Too many redirects when running behind load balancer?, posted by Tamas Gal on Tue Jul 19 11:01:00 2022 
We were running ELOG for many many years in our experiments and the instance was operated on a Debian XEN server as a container. I am now trying to migrate
it into our Docker Swarm cluster and I am using the https://hub.docker.com/r/de1lz/elog-docker Docker image, which works very well with our logbooks
when I run it as a single container. However, when I put the container behind my load balancer (HAProxy) using the simple HTTP mode (which works very
    icon2.gif   Re: Too many redirects when running behind load balancer?, posted by Tamas Gal on Tue Jul 19 11:17:44 2022 
Thanks for the quick reply! Sorry, I forgot to paste the "global" part of the config, I have that URL already set:

[global]
;Main Settings
    icon2.gif   Re: Too many redirects when running behind load balancer?, posted by Tamas Gal on Tue Jul 19 11:24:36 2022 
I also tried the default configuration (example config) and it that works behind the load balancer. So I guess it's related to the password-page,
which causes this redirect loop? Our logbooks are all password protected, so when a logbook URL is clicked, it should first present the login-form, and
that's where it chokes.
ELOG V3.1.5-3fb85fa6