Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 434 of 808  Not logged in ELOG logo
New entries since:Thu Jan 1 01:00:00 1970
ID Date Icon Author Author Email Category OSdown ELOG Version Subject
  65950   Mon Aug 11 15:14:40 2008 Reply T. Ribbrockemgaron+elog@ribbrock.orgQuestionLinux2.7.4-2111Re: Using the command line tool to edit
Stefan Ritt wrote:

I fixed two things:

  • The logbook can now contain a space. Enclose it in double quotes such as elog -l "LOG BOOK" ...
  • The error you report comes from the fact that you are the first person using elog submissions together with "use lock=1" in the configuration file. This has never been tested and therefore does not work . So I fixed this by adding a new hidden parameter. If you update to SVN revision 2122, things should work

Tehe, leave it to us "stupid users" to break your nice little program in new and exiting ways... ;-) But: THANK YOU! Both things are indeed working now - that brings me one step closes to my automated logbook, which is great!

 

Stefan Ritt wrote:

Concerning your request of editing existing entries by their idea, I agree with Yoshi that you could grab the ID upon the first submission. An alternative is to make a direct search on a logbook. Since this is not implemented in the elog command line tool, you have to use wget for it:

wget "http://localhost:8080/LOGBOOK/?mode=raw&Attribute1=something" -O elog.txt

A problem here is that the username and password are normally transmitted in an encrypted form as cookies by your browser after you logged in. Now you have to convince wget first to log in like

wget "http://localhost:8080/LOGBOOK/?unamee=USER&upassword=PASSWD"--save-cookies cookies.txt

followed by a second call to wget with --load-cookies cookies.txt. I tried that but was not successful since the login procedure above redirects to the elog listing page, and only the cookies set after the redirection were saved in cookies.txt. Maybe you can figure out how to do that. The only way I could get it to work is to supply the encoded password, which I manually obtained from the password file. The URL was then

wget "http://localhost:8080/LOGBOOK/?mode=raw&Attribute1=something&unm=USER&upwd=ENC_PWD" -O elog.txt

I thought about grabbing the ID on first creation. The problem with that is that I really would have to run parallel "databases" - one in elog to keep the information I want plus a second one which maps the elog-IDs to the "real" IDs - and the second one would also have to deal with things like "ID exists", "ID doesn't exist", "ID gets deleted" and so on - just the kind of hassle I want to avoid. But what you suggest with wget will most likely be sufficient. The logbook in question is readable for everyone (only editing/writing requires authentication), so I can search without password hassle. In fact, this will work:

 

wget -q "http://localhost:8080/LOGBOOK/?mode=raw&Attribute1=something" -O -| grep '\$@MID'|awk '{print $2}'

Et voila, I have an ID. This will generate a bit more traffic than a parallel "DB", but I think it will be less susceptible to errors, as all information is kept within the elog logbook at all times. Thanks again for your help - time to do some scripting! :-)

  65953   Mon Aug 18 10:56:05 2008 Question dale cooperagentdcooper@gmail.comQuestionLinux2.7.4xExpand TEXT colum in Summary view?

Hello All,

I am wondering if it is possible to configure ELOG to expand the TEXT column in the SUMMARY view? As it stands I get about 48 characters displayed per line in the in the TEXT column, with 3 lines getting displayed per ENTRY (approximately 144 characters per ENTRY). So what I'd like to do is see if it is possible to EXPAND the TEXT column in the SUMMARY view to allow say.... 100 characters per line, or say 275 characters per ENTRY when viewing the SUMMARY view?

 

Is this possible? If so, how does one go about doing this... I tried to search the site thoroughly before posting my question, I just didn't see it mentioned anywhere... Help please =)

 

Thanks!

agentdcooper

  65954   Mon Aug 18 14:08:22 2008 Reply Yoshio ImaiQuestionLinux2.7.4xRe: Expand TEXT colum in Summary view?

dale cooper wrote:
I am wondering if it is possible to configure ELOG to expand the TEXT column in the SUMMARY view?

While it is not possible to specify a number of characters per row, you can control the number of text lines in the summary view using the
Summary lines = NNN
directive (cf. also the ELog admin guide).
  65955   Mon Aug 25 17:23:22 2008 Question Davide Salomonidsalomoni@gmail.comQuestionLinux Grabbing user name from SSL user certificate

With SSL enabled, I'd like to to grab the CN (Common Name) of the user certificate and use that as login authentication method.

I am thinking of the following scenario:

- users with read & write privileges need to have an SSL certificate loaded in their browser. The "Author" field will be pre-set to the CN of the user certificate.

- authorization may be subject to further granularity (e.g. only allow users whose certificate belongs to a certain organization)

- read-only, guest access (without certificate) may or may not be allowed

 

Is there a way to do that?

  65957   Mon Sep 1 13:48:29 2008 Reply Stefan Rittstefan.ritt@psi.chQuestionLinux Re: Grabbing user name from SSL user certificate

Davide Salomoni wrote:

With SSL enabled, I'd like to to grab the CN (Common Name) of the user certificate and use that as login authentication method.

I am thinking of the following scenario:

- users with read & write privileges need to have an SSL certificate loaded in their browser. The "Author" field will be pre-set to the CN of the user certificate.

- authorization may be subject to further granularity (e.g. only allow users whose certificate belongs to a certain organization)

- read-only, guest access (without certificate) may or may not be allowed

 

Is there a way to do that?

 I put your request on the wish list.

  65961   Thu Sep 4 20:49:59 2008 Idea Alan Stonealstone@fnal.govRequestLinuxV2.7.1-200Search Find Selected or List of Logbooks instead of all Logbooks.

I am using the CMS ELog remotely as a monitoring tool.  Information is compartementalized into dozens of containers.  I can create a find query URL, say last day, which then reloads every X minutes in Firefox.  When new ELog entries are made, then appear in the refresh and catch my attention.  But, my interests are somewhere between a single logbook and all logbooks.  If I choose all CMS logbooks for example for one day, I usually end up with > 200 entries. 

In short, I would like the ability to:

1) Select from the list of available logbooks when doing a search

2) Have more canned choices from smaller time frames, such as 1 hour or at least one shift (8 hours).

I do not see how to do this in the current elogd.cfg syntax instructions.

Thanks, Alan

  65962   Fri Sep 5 10:21:45 2008 Reply Stefan Rittstefan.ritt@psi.chRequestLinuxV2.7.1-200Re: Search Find Selected or List of Logbooks instead of all Logbooks.

Alan Stone wrote:

I am using the CMS ELog remotely as a monitoring tool.  Information is compartementalized into dozens of containers.  I can create a find query URL, say last day, which then reloads every X minutes in Firefox.  When new ELog entries are made, then appear in the refresh and catch my attention.  But, my interests are somewhere between a single logbook and all logbooks.  If I choose all CMS logbooks for example for one day, I usually end up with > 200 entries. 

In short, I would like the ability to:

1) Select from the list of available logbooks when doing a search

2) Have more canned choices from smaller time frames, such as 1 hour or at least one shift (8 hours).

I do not see how to do this in the current elogd.cfg syntax instructions.

Thanks, Alan

 First of all have you considered using the built in RSS feed? With an RSS reader new entries are shown in a local notification box similar to new email. Some people like it.

1) This is not directly possible, but there is a trick: Define a URL to each logbook and put it into the Bookmarks Toolbar of Firefox. If you have many logbooks, this will however clutter up your toolbar. Then I recommend to make a subfolder in the toolbar and put them into it. Now firefox has the neat feature that if you click with the right mouse button on the folder, it offers you "Open All in Tabs". If you select this, you get a tab for each logbook in fireforx, and you can browse through each logbook individually.

2) This function was there long time ago (since I needed it myself) but somehow vanished. I added it back in revision 2126. You can now craft an URL like

https://midas.psi.ch/elogs/Forum/past-8

to show the last 8 hours.

  65964   Mon Sep 8 14:22:10 2008 Entry Samuel Morrissam@tifr.res.inQuestionLinux2.6.3Is there a way to send email notification without attachment

Is there any way to send email notification of only the message and not the attachment. We get entries consisting of 10 MBs sometimes, and we would like to send only the message and not the attachment in the email notification. I tried restricting postfix to 1MB and using Email Format = 111 but with no success.

Thanks

sam

ELOG V3.1.5-3fb85fa6