Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 372 of 808  Not logged in ELOG logo
New entries since:Thu Jan 1 01:00:00 1970
ID Date Icon Authordown Author Email Category OS ELOG Version Subject
  68966   Thu May 9 16:42:13 2019 Reply Stefan Rittstefan.ritt@psi.chQuestionLinux3.1.2Re: Does there is a way to no the $message_id when creating a new submission

No, the message ID gets assigned only when you submit the entry.

Stefan

Lagarde wrote:

Hello,

I would like to know if it's possible to know the message_id of when creating a new entry in elog ?

I would like to do something like this Preset text = $message_id

Thx;

 

  68968   Fri May 10 08:19:08 2019 Reply Stefan Rittstefan.ritt@psi.chQuestionWindows3.1.2Re: Execute attribute

I don't understand your question. There is no "inline" vs. "external" script. Using the "execute new = <command>", you run a script on the server side. Can be powershell under Windows or bash/csh under Linux. I remember however that there has been issues under recent windows in passing parameters to the shell. Linux certainly works fine, we usse it all the time.

Alan Grant wrote:

Apart from an inline shell command that can be run with the Execute attribute, is it possible to run an external script file? I would like to run a Powershell script with the Elog attribute data parameters passed to it upon Submit New entry.

 

  68974   Thu May 16 09:12:52 2019 Reply Stefan Rittstefan.ritt@psi.chQuestionWindows2.9.2Re: Windows Server 2012 - moving logs

Just stop the server. Move your elog directory to the new server (including elogd.cfg, logbook directories, ...). Then check that the elogd.cfg needs modifications, like the URL which might have changed, then start the new server. V2.9.2 did have an old data format, which *should* be converted automatically. But first try it out before deleting the old server.

Lesley Herren wrote:

We are installing a new data center which will be based on Windows 2012 servers.  Our current center is on Windows 2008 and will be decommissioned this year - 2008 servers (because of the security issue) will not be allowed in the new data center.  So game plan is to install latest ELOG (3.1.2) on the 2012 server at the new data center and move the logs over from the 2008 server.  I've looked through entries and do not see anything about moving the logs over from one system to another.  In this case there are 2 concerns:

1.  Has anyone moved the log entries from one system over to another?

2.  Since we are also looking at updating version of ELOG - are there conversion steps necessary for the log entries or will v3.1.2 be able to use the log files from v2.9.2 as is?

Thank you, Lesley

 

  68978   Mon May 20 16:39:50 2019 Reply Stefan Rittstefan.ritt@psi.chQuestionWindowsV3.1.4Re: custom subject for mail info

Use Email subject = $Subject

or a bit more detailed

Use Email subject = ELOG Ticket: "$Subject" posted by $Author

Daniel Pfuhl wrote:

Hello,

we are extensively using ELOG for documenting changes in our infrastructure. It is very helpful for us.

To avoid multiple documentation efforts it would be even more helpful if the subject of an ELOG entry also could be the subject of the mail which is sent out. With that we could send mails to our ticket system and include the special ticket number to make the right assignment in our ticket system.

Does anyone know if this could be accomplished with the latest version of ELOG?

Best regards,

daniel

 

  68981   Tue May 21 12:08:17 2019 Reply Stefan Rittstefan.ritt@psi.chQuestionWindows3.1.4Re: How to pre-fill an attribute that was added later

Find all entries which have this attribute empty. Then click on Select, then select all, then click on Edit, then change all values. There might be a limit how many entries you can select in one go, so you might have to do it in bunches.

Antonio Bulgheroni wrote:

Dear all, 

I have a question about my logbook. I have recently added a new attribute to my logbook and I would like to prefill all previous entries with a fixed value for this field. Is it possible? 

 

Thanks for your help and best regards,

toto

 

  68985   Tue May 21 17:20:19 2019 Reply Stefan Rittstefan.ritt@psi.chQuestionWindows3.1.4Re: Write by a .dll instead of the elog.exe

I presume you want to write from another program. You can call a command line shell (done via the "system()" command under C) which then calls the elog executable. If you absolutely want a DLL, you can einter try to compile one yourself using the fuctions in elog.c, or use the curl DLL with which you can also submit elog entries. See elog:68597 for usage of curl. While curl is usually executed from the command line, there is also a curl library containing the same functionality. See https://curl.haxx.se/windows/

Marcel Krenz wrote:

Dear All,

 

is it possible to write to the elog instead of the Command line throug a .dll

 

Best

MK

 

  68987   Fri Jun 14 12:43:04 2019 Reply Stefan Rittstefan.ritt@psi.chBug reportAll3.1.4Re: Find cannot find values with brackets

I‘m happy to merge the PR after a quick test next week.

Stefan

Sebastian Schenk wrote:

For demonstration, I created https://elog.psi.ch/elogs/Linux+Demo/8

The Find search for category aaa(bb) does not give results.
A quick filter corrects the value to aaa\(bb) and delivers results.

I made a simple fix and submitted it as PR to the bitbucket repository.

 

  68990   Sat Jun 22 10:07:08 2019 Reply Stefan Rittstefan.ritt@psi.chOtherLinux | Windows | Mac OSX | All | OtherELOG V3.1.2-bd7Re: Calculations & Interfacing a DataBase with Elog.

Yes elog stores data in a flat file database. Go to your logbook directory and look for files YYMMDDa.log where you find all data. Some people do a post submit call to scripts, other integrate JS directly on each page (e.g. via "bottom text" option where you can load a whole JavaScript file), then pick the fields and do calculations directly in the edit window.

Stefan

John wrote:

Hi, I am trying to calculate two or more Elog fields and then return the value to Elog. I am currently learning Perl to do this. I realize JS can do this.. but so can IBM Basic ;)  I am savy with other db techniques like sql. My question is before I get too far along with this project, is it safe to say the current storage of Elog data is 'Flat File' database? I also want to find out if it would be better to try and grab the data prior OR  after it gets into the Elog database. I see there are other forum messages related to sql interfacing and such, but nothing conclusive.  I will submit my personal progress here. Thanks again, John

 

ELOG V3.1.5-3fb85fa6