Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 41 of 238  Not logged in ELOG logo
icon5.gif   Report Generating Tool?, posted by Hal Goldfarb on Mon May 21 09:41:57 2018 
Has anyone developed a report tool for elog?  I would like to be able to sort certain items and send them to either a printer, or an email (external
to my own use).

If not, any ideas on an easy means of doing this?  I write a lot of Perl, so that would be an option for me if the text is easily obtained.
    icon2.gif   Re: Report Generating Tool?, posted by Stefan Ritt on Mon May 21 21:37:36 2018 
Switch to the "summary" display (try it with this forum). You get headers (like "category"). Clicking on it sorts by that attribute.
Then display "all" entries, or use the "find" option to search in certain time periods, then just print the web page.

Alternatively, expeort logbook entries as CSV files, load them into a spreadsheet program, and do the sorting and printing there.
       icon2.gif   Re: Report Generating Tool?, posted by Hal Goldfarb on Tue May 22 06:55:21 2018 
I don't see an "export" option in the documentation, only "import."  Printing the web page is probably not what I want.




Stefan
Ritt wrote:



Switch to the "summary" display (try it with this forum).
          icon2.gif   Re: Report Generating Tool?, posted by Stefan Ritt on Tue May 22 11:11:43 2018 
Click on "Find", select "Export to CSV", optionally select filter criteria, then press "Search".

Stefan




Hal
       icon2.gif   Re: Report Generating Tool?, posted by Andreas Luedeke on Wed May 23 16:19:48 2018 
Here's a little example for a query for this logbook:

curl -f -s -k "https://elog.psi.ch/elogs/Forum/?jcmd=Search&mode=CSV1&last=7&Category=^Question%24"

You
can easily process this output with perl, to create reports. I use it for example to create counts for specific enties, like "Bug reports" that
icon5.gif   both "email <attribute> <value" and "email all" at the same time, posted by Stefano Lacaprara on Wed May 23 14:44:08 2018 
Hi, 
  I have an elogbook which sends notifications to subscribers, plus, if the "Type" is "New Run", it sends the notification to a different mailing addeess
and with a different subject (which need to be parsed by 
icon4.gif   elogd service crashes after windows update, posted by Tom Roberts on Fri May 18 00:57:33 2018 
We have been using elog on Windows 10 for a long time. Today, after a Windows update, the elogd service started crashing (error 1067, unexpected termination).
It ran fine just before the Windows update (which took > 1 hour, so it was a major one). Uninstalling and re-installing did not help, including replacing
my elogd.cfg with the default. Installing on another PC (that also has this update) fails in the same way. I have a good backup of my logbook.
icon5.gif   about shiftcheck, posted by Xuan Wu on Tue May 15 04:41:23 2018 shiftcheck1.pngshiftcheck2.pngshiftcheck3.png
Hi all,

I try to implement a shift check list for our facility. The attributes called "a1, a2, b1, b2 etc" are used in original shiftcheck.html,
However, we would like to use "1.1, 1.2, 2.1, 2.2 etc". So I try to change the name of checkbox in shiftcheck.html and the attributes in
    icon2.gif   Re: about shiftcheck, posted by Andreas Luedeke on Tue May 15 10:35:32 2018 
An attribute is similar to a variable. Do you know any programming language that allows to start a variable with a digit? I don't.

The solution is very obvious: start your attributes with a letter.

Cheers, Andreas
       icon2.gif   Re: about shiftcheck, posted by Xuan Wu on Wed May 16 02:20:24 2018 
That's true. Thanks for your explanation.

Cheers, Xuan




Andreas
icon4.gif   Elog ID entry bug at >99999 entries, posted by Joseph McKenna on Fri May 4 14:43:35 2018 sequencer_events.png
We have a possible bug with elog that the ID for an elog entry at over 99,999 entires reads as 10,000... 

68792/1 Illistrates the problem, we use this ID often to cross reference from out datalog...

Is this a know bug we can find a fix for? We are using:  elogd 2.9.2 built Jul 14 2015, 18:58:06 revision
    icon2.gif   Re: Elog ID entry bug at >99999 entries, posted by Andreas Luedeke on Fri May 4 16:05:32 2018 elog-test.png
I am not sure I understand your bug report.

I can easily create IDs greater than 100'000 (see attached picture), but that is not your problem, or is it?

Cheers, Andreas
       icon2.gif   Re: Elog ID entry bug at >99999 entries, posted by Chris Rasmussen on Sat May 5 11:22:50 2018 sequencer_event_100098.PNGsequencer_event_10009X.PNG
Hi Andreas, I'm working on the same experiment as Joseph who submitted the bug report.

You are right, IDs greater than 10^5 are created no problem. The issue is with the internal elog link, in this case of the form elog:SequencerEvents/XXXXX 
The link generated uses only the first 5 digits of the message ID, and therefore links to the wrong message. In the two attachments you can see our sequencer
          icon2.gif   Re: Elog ID entry bug at >99999 entries, posted by Andreas Luedeke on Sat May 5 20:55:23 2018 
Well, in my example the ID link worked just fine.

There could be a string length limitation, but it could be as well the way you are creating the ID that is the source of the problem: I would
need the part of your elogd.cfg that defines how you format your ID in order to try to reproduce your problem.
             icon2.gif   Re: Elog ID entry bug at >99999 entries, posted by Chris Rasmussen on Mon May 7 18:10:20 2018 
ah yes, that was a helpful clue. Our elogd.cfg file led me to a .js file which redefines the ID to the elog:SequencerEvents/XXXXX
format and it indeed had a silly hard coded length of that string.

Since I am pretty sure this is our code, I think it is safe to say that this is not a bug in the elog
                icon14.gif   Re: Elog ID entry bug at >99999 entries, posted by Joseph McKenna on Tue May 8 16:17:28 2018 
Thank you all for your kind responses. Please consider this thread resolved: no bug in elog




Chris
Rasmussen wrote:



ah yes, that was a helpful clue. Our elogd.cfg file led me to a
          icon2.gif   Re: Elog ID entry bug at >99999 entries, posted by Stefan Ritt on Mon May 7 14:24:18 2018 
As Andreas said we have to reproduce the problem. What is special in your case is the elog:SequencerEvents/XXXXX.
This is non-standard and must be created through your configuration of elog or by an external script. I just guess that you have something like

Preset ID = elog:SequencerEvents/#####
icon5.gif   Email Config, posted by Stefan Werler on Wed Apr 18 12:07:50 2018 config.txt
Hi,
I´m new in ELOG,
Can u explain me how i config the Mailing?
    icon2.gif   Re: Email Config, posted by Stefan Ritt on Wed Apr 18 12:30:51 2018 
SMTP host = ...

as written in the documentation!

Automatic email after expiration is not possible.
       icon14.gif   Re: Email Config, posted by Stefan Werler on Wed Apr 18 13:18:07 2018 
many thanks




Stefan
Ritt wrote:



SMTP host = ...
    icon2.gif   Re: Email Config, posted by Andreas Luedeke on Wed Apr 18 13:43:36 2018 

SMTP host = ...

MUST be set in the [global] section of your configuration - it will likely not work when you try to set it for a specific
logbook.

I don't see how ELOG can send an automatic email after a date expired.
icon5.gif   problem with chkeditor, posted by Andrea Mazzolari on Wed Apr 4 19:56:48 2018 
Hi All,
I just installed elog latest version. I can see that my chkeditor (HTML encoding) is pretty simplified with respect to the version i can see
there. Why this ? For example, it does not offer the possibility to upload images.
    icon2.gif   Re: problem with chkeditor, posted by Stefan Ritt on Wed Apr 11 11:55:47 2018 
Can you post a picture here?




Andrea
Mazzolari wrote:



Hi All,
       icon2.gif   Re: problem with chkeditor, posted by Andrea Mazzolari on Sat Apr 14 15:11:31 2018 
If i try to upload an image here, i got the error "Image Source URL Is Missing"...

can you help me further ?
Best regards,
          icon2.gif   Re: problem with chkeditor, posted by Andreas Luedeke on Mon Apr 16 17:27:35 2018 
Yes, I can help with that: you've tried to put the picture into the text body. Try to make it a normal attachment, that'll work always.




Andrea
Mazzolari wrote:



If i try to upload an image here, i got the error "Image Source
icon4.gif   "Slow script" problem posting/editing from Safari -- browser hangs, times out, posted by Michael Kelsey on Wed Apr 11 18:14:35 2018 
Hello!  The CDMS collaboration is using e-Log as one of it's issue tracking systems.  In the last few months, I have noticed a problem
when either creating or editing entries from my usual Safari browser (currently 11.1 on MacOSX 10.13.4):  The [Submit] button triggers
a spinning beach ball, with no connection to our e-Log server, and after several minutes, Safari complains the the page had to be reloaded, discarding
    icon2.gif   Re: "Slow script" problem posting/editing from Safari -- browser hangs, times out, posted by Michael Hibbard on Thu Apr 12 14:13:18 2018 
I dont' have a solution, but I just wanted to bring more attention to your post. I too am having the same issue with the ELOG system and the Safari
browser. I have noticed that ELOG is most stabel and function on the client end from the IE browser. A few weeks ago I also had to switch from using ELOG
on the client end from Safari to Firefox.
       icon2.gif   Re: "Slow script" problem posting/editing from Safari -- browser hangs, times out, posted by Stefan Ritt on Sat Apr 14 08:50:40 2018 
I'm not 100% sure, but I believe it should work without the 

while (in_asend);

So can you please remove that line (it's in src/elogd.c) and recompile elogd and test it?
          icon14.gif   Re: "Slow script" problem posting/editing from Safari -- browser hangs, times out, posted by Michael Kelsey on Sun Apr 15 08:03:21 2018 
Thank you for your suggestion, Stefan!  The sysadmin who handles our e-Log server implemented your suggestion earlier today (Saturday).  I
have been able to successfully create and modify e-Log entries with Safari since then.  Since the "slow script" issue has been intermittent
in the past, I plan to continue testing and monitoring for the next day or so.  Nevertheless, it appears that removing the waiting loop has alleviated
             icon2.gif   Re: "Slow script" problem posting/editing from Safari -- browser hangs, times out, posted by Stefan Ritt on Mon Apr 16 08:19:16 2018 
Ok, I removed the code from the official code now. 

A bit background: The "autosave" mechanism in elog saves regularly the current content in a "draft" message, so that the
data does not get lost if the browser for example crashes. The saving is done asynchronously via some AJAX call. This call takes some time, since it's
ELOG V3.1.5-3fb85fa6