Monitoring a logbook for changes, posted by Johan Forsberg on Tue Jan 12 15:06:42 2016
|
Hi again!
I've another need that you probably already thought of :)
I'd like to be able to efficiently monitor a logbook for changes (new or edited posts) somehow. The most reasonable way I've found so |
Re: Monitoring a logbook for changes, posted by Stefan Ritt on Tue Jan 12 16:10:34 2016
|
Use automatic email notifications or RSS feeds. Read the manual for that.
Stefan
Johan |
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. |
Re: Monitoring a logbook for changes, posted by Johan Forsberg on Wed Jan 13 10:29:54 2016
|
Yeah, I suppose something like that would be both faster and more efficient than polling ELOG itself. Fortunately the ELOG disk format looks easily parsed.
Thanks for the pointer!
Tamas |
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 |
Re: Monitoring a logbook for changes, posted by Stefan Ritt on Wed Jan 13 17:21:56 2016
|
You guys know that there is the possibility to execute an arbitrary script on each submission of a new messge? Just use "Execute new = <script>".
In the script you have access to all parameters of the message. That's maybe simple than to watch the file set.
Tamas |
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 |
Re: Monitoring a logbook for changes, posted by Stefan Ritt on Wed Jan 13 19:08:09 2016
|
In the documentation of course :-)
Tamas
Gal wrote:
Where is this feature documented? |
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 |
Re: Monitoring a logbook for changes, posted by Stefan Ritt on Wed Jan 13 19:22:35 2016
|
You look here: http://midas.psi.ch/elog/config.html and scroll down to "Execute New". I wonder how you ever could run elog without looking
at that page.
Tamas |
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 |
Re: Monitoring a logbook for changes, posted by Johan Forsberg on Wed Jan 13 20:08:04 2016
|
Aha, that's interesting too! I'll have to look more carefully through the documentation... :)
Stefan
Ritt wrote:
You guys know that there is the possibility to execute an arbitrary |
Re: Monitoring a logbook for changes, posted by Johan Forsberg on Wed Jan 13 10:27:21 2016
|
Yeah, I found the RSS feed feature, but I could not get ETags/Last-Modified header fields which meant that I'd have to read and parse the entire
feed every time. Maybe I made a mistake and they do work, but if not, I think it would make sense to implement as it should save work for both the server
and the client. |
Slackbot for ELOG, posted by Tamas Gal on Wed Jan 13 08:25:50 2016
|
Dear all,
I just wanted to share a small script which I wrote to integrate our ELOG in Slack. This allows us to be notified immediately if there is a new
logbook entry directly within the appropriate Slack channels. We're using ELOG V2.9.2-245 but if the log-file format has "Subject, |
Prefill attributes for new post, posted by Johan Forsberg on Tue Jan 12 11:35:55 2016
|
Hi all,
I have a use case for ELOG where I need to be able to "prefill" some attributes in the "cmd=new" form, based on the URL.
To illustrate, imagine a link that takes the user directly to the form for creating a new post, with the "Subsystem" attribute already |
Re: Prefill attributes for new post, posted by Andreas Luedeke on Tue Jan 12 11:48:57 2016
|
Hi Johan,
yes, it is possible. And you were actually very close :-)
In order to pass preset-parameters within a URL, you
just need to prefix the fieldname with a "p". In your example, you would write "...&pSubsystems=Vacuum".
Here is
an example for the Linux Demo logbook:
https://midas.psi.ch/elogs/Linux+Demo/?cmd=New&pAuthor=Santa+Claus&pSubject=Christmas+Presents&pType=Problem+Fixed&pCategory=Hardware
This |
Re: Prefill attributes for new post, posted by Stefan Ritt on Tue Jan 12 11:50:22 2016
|
Put a "p" in front of the attribute, like "&pSubsystem=Vacuum". This is kind of an undocumented feature just for the experts
;-)
Johan |
Re: Prefill attributes for new post, posted by Johan Forsberg on Tue Jan 12 14:05:55 2016
|
Wow, than you both for the quick response! I agree it's quite a hidden gem, but the most important thing is that it works, thanks!
Stefan
Ritt wrote:
Put a "p" in front of the attribute, like "&pSubsystem=Vacuum". |
If a Required Attribute starts with a number – No CKEditor, posted by David Dunne on Fri Nov 27 06:53:54 2015
|
Hello,
Is the below an issue or am I doing something incorrectly?
Creating an attribute starting with a number and then including that attribute in
the Required Attribute list prevents access to the CKEditior.
This appears to be the case at least with FreeBSD (10.2 Rel) using Elog V3.1.0 and Windows
7 with Elog V3.1.1-3f311c5.
The problem can be recreated using the Elog supplied sample config and adding the necessary attribute, sample config showing |
Re: If a Required Attribute starts with a number – No CKEditor, posted by Andreas Luedeke on Fri Dec 11 14:30:10 2015
|
Hi David,
I can confirm a bug: changing the encoding does not work if you have a required attribute starting with a digit. The following
minimal config reproduces the bug:
[global]
Default
encoding = 1 |
How to configure SMTP server in Windows using gmail, posted by Dawang on Thu Nov 12 03:04:09 2015
|
Hi ELOG Community,
Please help me to configure my smtp server in Windows using gmail server
This is what in my config: |
Re: How to configure SMTP server in Windows using gmail, posted by Stefan Ritt on Thu Nov 12 09:00:23 2015
|
Elog does not directly support TLS encryption. See here for a wrokaround: elog:68039
Dawang |
Re: How to configure SMTP server in Windows using gmail, posted by Dawang on Fri Nov 20 06:25:56 2015
|
Thanks Stefan,
I checked in my ELOG folder and can't find the stunnel.cfg. Is that only available in Linux? Can you please recommend a third party SMTP
server for me use to successfully enable mail notif via Windows OS. Thanks much |
Re: How to configure SMTP server in Windows using gmail, posted by Stefan Ritt on Fri Nov 20 08:06:45 2015
|
I believe there is a stunnel port for Windows, but that's more for the experienced users. I guess there is no simple solution.
Stefan
Dawang |
Re: How to configure SMTP server in Windows using gmail, posted by Dawang on Fri Nov 27 06:31:25 2015
|
Hi Stefan,
I remeber when I used elog email notif feature in my previous workplace which is running in windows, I just put IP address on SMTP host = X.X.X.X
at the config file and it run without any problem. I'm thinking they are using SMTP server. Can you please recommend any SMTP server and SMTP relayer |
log entries after a certain date not displayed - 3.1.1, posted by Mike Giles on Fri Nov 20 10:28:41 2015
|
Hi,
I'm having an issue with Elog 3.1.1 on windows 10 not displaying all log entries (after a certain date) in a logbook directory.
The logbook is saved in a Dropbox folder and the entries were created on a windows 8.1 PC with 3.1.1 also. |
Re: log entries after a certain date not displayed - 3.1.1, posted by Andreas Luedeke on Fri Nov 20 11:06:24 2015
|
Hi Mike,
I don't think that it is a good idea to have two elogd servers accessing the same files: that's what you are doing with
the Dropbox folder, isn't it? ELOG is not made to be used like that.
If you want to share the same entries in different logbooks, then
you should use the "mirror server" functionality in ELOG. Have a look at: https://midas.psi.ch/elog/config.html#mirroring
Cheers, |
Re: log entries after a certain date not displayed - 3.1.1, posted by Stefan Ritt on Fri Nov 20 12:40:19 2015
|
Besides the commen Andrea made I would like to add that you can convince elog to show all files if you simply restart it, then it will re-scan all files.
But as Andreas said, if two elogd instances write to the same directory, you will get a mess with double IDs of entries.
Stefan |
Re: log entries after a certain date not displayed - 3.1.1, posted by Mike Giles on Tue Nov 24 09:18:40 2015
|
Thanks very much for your comments. I will take a look at the mirror server functionality.
I have only been running one elogd at a time, restarting elogd (on Windows 10) doesn't seem to pick up the changes made on Windows 8.1 PC
(stopped elogd after changes made and log file updated) |
Re: log entries after a certain date not displayed - 3.1.1, posted by Stefan Ritt on Tue Nov 24 12:35:22 2015
|
Ah, I see another problem. The pre 3.1 version had all logbook files in one directory, and the 3.1 puts the files in one subdirectoy per year. On transition
from 3.0 to 3.1, an automatic conversion is made, but only once. If you later add files into the root logbook directory, they will not be seen. So you
have to move them manually into the right subdirectory. |
Re: log entries after a certain date not displayed - 3.1.1, posted by Mike Giles on Tue Nov 24 21:29:16 2015
|
Hi, I have noticed that if an entry is not submitted it is saved in a sub-folder (name is current ID number) eg http://localhost:8090/mike/23, while
draft it doesn't appear in list page but you can browse directly to it.
When you update an entry on one server instance, if you then browse to the entry ID on the 2nd server instance it is draft. If you edit then |
Re: log entries after a certain date not displayed - 3.1.1, posted by Stefan Ritt on Wed Nov 25 08:51:46 2015
|
Drafts are not shown in the list page, but you can browse directly to them, if you know their idea. They are also shown if you hit "new". Then
a box comes up "You have unfished drafts, do you want to edit them?". This is the new draft feature introduced recently and a feature of elog.
But I guess you have a more general problem. You run two elogd severs, and you transfer information between the two servers via Dropbox. Elog |
Re: log entries after a certain date not displayed - 3.1.1, posted by Mike Giles on Wed Nov 25 09:27:07 2015
|
Understood, Thanks very much for your help.
Stefan
Ritt wrote:
Drafts are not shown in the list page, but you can browse directly to |
Paste figure from Clipboard, CKEditor 4.5.1 and Firefox 42, posted by Simon Däster on Thu Nov 5 16:59:34 2015
|
I tried to paste an Image from Clipboard into the CKEditor 4.5.1. Unfortunatelly, that doesn't work. I used Firefox, version 42. When I looked
in the javascript error console, it reported that "TypeError: b is undefined, ckeditor.js:1139:112". The variable d.config.filebrowserImageUploadUrl
could not be found. |
Re: Paste figure from Clipboard, CKEditor 4.5.1 and Firefox 42, posted by Stefan Ritt on Tue Nov 10 14:08:47 2015
|
That seems a CKEditor problem. Can you see if it works on their site (ckeditor.com). The current version is 4.5.4. Maybe they fixed it. You can upgrade
CKEditor yourself in elog by just copying the new verson over the old /elog/scripts/ckeditor directory.
Simon |
Re: Paste figure from Clipboard, CKEditor 4.5.1 and Firefox 42, posted by Simon Däster on Mon Nov 23 10:32:37 2015
|
Updating CKeditor did work, thanks for the tip. |
can attrinute fields contain more that one line, posted by Paul Harrington on Tue Apr 27 17:40:25 2004
|
Is there any way to configure elog so that attribute fields can be edited
on more than line like the 'text' field?
|
Re: can attrinute fields contain more that one line, posted by Stefan Ritt on Fri Apr 30 21:26:32 2004
|
> Is there any way to configure elog so that attribute fields can be edited
> on more than line like the 'text' field?
>
|
Re: can attrinute fields contain more that one line, posted by Paul Harrington on Fri Mar 18 10:41:39 2005
|
> > Is there any way to configure elog so that attribute fields can be edited
> > on more than line like the 'text' field?
> >
|
Re: can attrinute fields contain more that one line, posted by Stefan Ritt on Fri Mar 18 10:54:36 2005
|
> Was just wondering about the status of the multi-line attributes in Elog, are
> they implemented in elog yet? If not is that something you are planning to do
> in the future?
|
Re: can attrinute fields contain more that one line, posted by Paul Harrington on Fri Mar 18 11:06:11 2005
|
> > Was just wondering about the status of the multi-line attributes in Elog, are
> > they implemented in elog yet? If not is that something you are planning to do
> > in the future?
|
Re: can attrinute fields contain more that one line, posted by Paolo Franchini on Fri Nov 20 11:20:49 2015
|
> > > Was just wondering about the status of the multi-line attributes in Elog, are
> > > they implemented in elog yet? If not is that something you are planning to do
> > > in the future?
|
Re: can attrinute fields contain more that one line, posted by Stefan Ritt on Fri Nov 20 12:41:58 2015
|
> > > > Was just wondering about the status of the multi-line attributes in Elog, are
> > > > they implemented in elog yet? If not is that something you are planning to do
> > > > in the future?
|
Re: can attrinute fields contain more that one line, posted by Paolo Franchini on Fri Nov 20 15:27:12 2015
|
> > > > > Was just wondering about the status of the multi-line attributes in Elog, are
> > > > > they implemented in elog yet? If not is that something you are planning to do
> > > > > in the future?
|
Re: can attrinute fields contain more that one line, posted by Grant Jeffcote on Thu Oct 19 07:00:57 2006
|
> > Is there any way to configure elog so that attribute fields can be edited
> > on more than line like the 'text' field?
> >
|