Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 749 of 806  Not logged in ELOG logo
ID Date Icon Authordown Author Email Category OS ELOG Version Subject
  67799   Tue Feb 3 06:48:32 2015 Idea Andreas Luedekeandreas.luedeke@psi.chQuestionWindows3.0.0Re: SMTP Host Error
Hey, great: I've learned something new about elog! I always took great care to get the capitalization of the options correct wink
Stefan Ritt wrote:

That's not correct. Any option in the configuration file is case-insensitive. It should also not matter if the statement is under the logbook or in the [global] section. 

What you probably made wrong is to write "supress email to users =1" instead "suppress email to users =1". Note the second "p". So English in the end DOES matter, at least here wink

Andreas Luedeke wrote:

You need to specify "Suppress Email to users=1" in the [global] section of the configuration. And it does matter if the letters are capitalized on not.

Banata Wachid Ridwan wrote:

sorry for may bad english, not my natives :D

for first question, I'll make it clear,

after sometimes running elog, suddenly SMTP host error occured.

I dont have SMTP host= on my configuration, but that error keep show up.

how to disable email notification completely for my elog? or at least how to disable those SMTP Host error?

I'll try supress email users =1 to my elog.cfg and error still exist. where I should place supress email users flag to make it works?

on the picture attached, it is said there is no smtp host defined in global setting.

could it be because members check automatic email notification on their setting?

 

for second question I'll attach my csv file, and you will see <p> </p> tags still there, and inconsistency when open it to ms excel (see picture)

you can see that portion of text file (second line of text file and soon, placed in "id pesan")

 

please help us.

 

Andreas Luedeke wrote:

If you have more than one topic it is better to do more than one post.

I did not understand your first question. You should not have a line "SMTP host= " if you don't want to send any email. Have you tried "Suppress Email to users=1" to get rid of the error message?

If you export in cvs format, then it is the correct behaviour that multiple lines of text in the body are put into quotation marks and printed as multiple lines in the output. Every spreadsheet program (Excel, Openoffice, Libreoffice, ...) should be able to read that into a table. I've tested it, it works fine. If you have a problem, then you'll need to attach your elogd.cfg file and the exported file in the forum and some screenshots of what your MS Excel does with it.

Banata Wachid Ridwan wrote:

Hello

first of all, congrats for bring back the forum after down for sometimes, :D

but seems my old account is broken, I cant login with that anymore, so I make new account and strangely I can make identical account like the old one ahahahaha

 

okay first question :

Recently my elog setup got smtp host error, everytime someone submit log, error result that SMTP host is not found in global setting.

I dont't set mail server on my server so I cant use smtp host function, and I use register type 1 to avoid email function, but after sometimes those error occured, it seems some members accidentally check ëmail notification option

so, how to completely disable this function or maybe some work around on this error? I dont have mail server right now,

 

second

When we export logbook to CSV and open to microsoft excel, html tags still there, how to ommit html tags completely during export? and how to make nice table data from csv in elog? I saw many inconsistency there, especially on comment data

for example if I make more than two lines of logbook, second line will place in first column , not in the last column, just like the first line of comment.

 

 

 

 

 

  67815   Wed Feb 25 08:41:59 2015 Reply Andreas Luedekeandreas.luedeke@psi.chQuestionAll3.0.0Re: Enter past date for logbook

As an administrator of the logbook you could add an additional attribute, e.g. "when" of type datetime.

Each entry would then have the unchangeable entry time and an addtional time, e.g. of the event you are describing in the entry.

For more details look here: elog:67712

Banata Wachid Ridwan wrote:

Is it possible to enter past date in logbook

I forgot to enter log yesterday, is it possible to add up now?

 

  67822   Thu Mar 12 09:53:57 2015 Reply Andreas Luedekeandreas.luedeke@psi.chQuestionWindows2.9.2Re: Is it possible to only send an email based on the value of multiple attributes?

Darren Hollinrake wrote:
My current setup notifies users if downtime = yes.
Email Downtime Yes = user1@xyz.com, user2@xyz.com

Is it possible to only send an email based on the value of multiple attributes?
For my use:
user1 only needs notifications if Platform = Workstation and Downtime = Yes
user2 only needs notifications if Platform = Network and Downtime = Yes



I think there is a solution, although it is complicated and I haven't tested it:

You can have an invisible field that is set based on a calculation from several fields, and use this field for the conditional email notification.
Just to give an idea, something like:

Subst myUser1Note = $shell( if [ $Platform = "Workstation" ] && [ $Downtime = "Yes" ] then echo "notify";else echo "idle";fi)
Email myUser1Note notify = user1@xyz.com

And if you like you make this field invisible by skipping it in:
Show Attributes = ...
and
Show Attributes Edit = ...


Just an idea...

Andreas
  67825   Mon Mar 16 07:16:56 2015 Question Andreas Luedekeandreas.luedeke@psi.chCommentAll-Re: Configure default time range in 'Find'
Hi David,
isn't the empty string "" doing already exactly what you want to achieve with "Show last all time"?
It is at least in my logbook.
Cheers
Andreas
David Pilgram wrote:

Hi Stefan,

There's one pre-set value you forgot to include in this, which is the genuinely required "Show last all time".  I archive many logbooks by years, and so for the year 2005 (say), searching by anything other than all time will always bring up zero results.  And it gets annoying that the default default is "Day", the number of times I've forgotten...

I got around this by allowing a "Show last default = 0", modifying the relevent line in the block of code you modified when this was introduced to make this select "i==0", and that did the trick. 

Stefan Ritt wrote:

I added a new optoin "Show last default = <days>", where one can pre-set the "Show last" drop-down box. I think this is a good idea, so now people can configure their elog to a certain default in this parameter. Of course all settings in the Find page are AND'ed together, so if one restricts the search to tha last week, but then looks for a date more in the past, the result will be zero by definition. The change is in the GIT repository. If you cannot recompile the code yourself, you have to wait for the next release.

David Pilgram wrote:

By the way, in further testing, the "Show last" selection over-rides whatever two dates are selected, so if you ask for any entry in Dec 2014, but the "Show last" selects "week", nothing is found - very quickly.  I trust that is what you're after, Eoin.  I'll keep my change to the coding, but that's personal choice.

 

 

  67827   Tue Mar 17 07:04:44 2015 Reply Andreas Luedekeandreas.luedeke@psi.chCommentAll-Re: Configure default time range in 'Find'
Hi David,
I was confused because one normally does not need to include a line in the configuration to set a default value. A default is exactly what you get if you don't specify anything in the configuration wink
But I think I've figured it out: you were overriding the default in the global section for all logbooks and wanted to get back to the default for a particular logbook.
Then another simple solution would have been to remove the line in the global section and add it just in those logbook configurations, where you actually need it.
Anyway, it is good that one can now set the default in the configuration; I agree that this should always be possible.
Cheers
Andreas
David Pilgram wrote:

Hi Andreas,

Yes, the empty string does exactly that, in the drop down menu, but before my changes, I could not set it to be the default setting in the configuration file.  In an archived logbook, it's perfectly possible for "all time" to be the only sensible value.  I tried "Show last default =  " and various other variants, with no success in getting what I actually required.  Also, in the documentation, there was no mention of a way to set the default as "all time", just a list of number of days (week (7), month (31), year (364) etc), which also led me to believe that it was not possible with the existing code.

I've sent an email to Stefan giving my coding changes for information.

Andreas Luedeke wrote:
Hi David,
isn't the empty string "" doing already exactly what you want to achieve with "Show last all time"?
It is at least in my logbook.
Cheers
Andreas
David Pilgram wrote:

Hi Stefan,

There's one pre-set value you forgot to include in this, which is the genuinely required "Show last all time".  I archive many logbooks by years, and so for the year 2005 (say), searching by anything other than all time will always bring up zero results.  And it gets annoying that the default default is "Day", the number of times I've forgotten...

I got around this by allowing a "Show last default = 0", modifying the relevent line in the block of code you modified when this was introduced to make this select "i==0", and that did the trick. 

Stefan Ritt wrote:

I added a new optoin "Show last default = <days>", where one can pre-set the "Show last" drop-down box. I think this is a good idea, so now people can configure their elog to a certain default in this parameter. Of course all settings in the Find page are AND'ed together, so if one restricts the search to tha last week, but then looks for a date more in the past, the result will be zero by definition. The change is in the GIT repository. If you cannot recompile the code yourself, you have to wait for the next release.

David Pilgram wrote:

By the way, in further testing, the "Show last" selection over-rides whatever two dates are selected, so if you ask for any entry in Dec 2014, but the "Show last" selects "week", nothing is found - very quickly.  I trust that is what you're after, Eoin.  I'll keep my change to the coding, but that's personal choice.

 

 

 

 

  67829   Wed Mar 18 09:34:46 2015 Reply Andreas Luedekeandreas.luedeke@psi.chQuestionWindows3.0.0Re: How to change configuration already set properly
ELOG does not provide you with a simple mechanism to rename attributes in existing entries.
If you rename an attribute in the configuration, then you need to adapt all existing entries by replacing the name in all *a.log files on the server.
Or you could set-up a second logbook with the renamed attributes, export all entries from the first logbook (use "Find") and import these entries in the second logbook.
Banata Wachid Ridwan wrote:

Hello, I have configuration file that already set on running logbook

but I want to change for example category and Atributes, and some other setting to match our language

If I just simply change category, or other option, when I log in on logbook, It wont show as I though. When I change back to original setting, it will show

How to change setting in configuration properly, so It will show and logbook still consistent using the new category and other option I just set.

thanx for the help

 

  67832   Fri Mar 20 09:23:57 2015 Reply Andreas Luedekeandreas.luedeke@psi.chQuestionWindows3.0.0Re: How to change configuration already set properly

ELOG is storing all entries as text files. Open text files and use search and replace in text editor. Or instead: export with Find and import in another ELOG with renamed attributes.

Banata Wachid Ridwan wrote:

ok.

what *a.log ? is it all database from elog? so I need to open it with text editor and replace all . am I Correct?

 

Andreas Luedeke wrote:
ELOG does not provide you with a simple mechanism to rename attributes in existing entries.
If you rename an attribute in the configuration, then you need to adapt all existing entries by replacing the name in all *a.log files on the server.
Or you could set-up a second logbook with the renamed attributes, export all entries from the first logbook (use "Find") and import these entries in the second logbook.
Banata Wachid Ridwan wrote:

Hello, I have configuration file that already set on running logbook

but I want to change for example category and Atributes, and some other setting to match our language

If I just simply change category, or other option, when I log in on logbook, It wont show as I though. When I change back to original setting, it will show

How to change setting in configuration properly, so It will show and logbook still consistent using the new category and other option I just set.

thanx for the help

 

 

 

  67833   Fri Mar 20 09:25:11 2015 Reply Andreas Luedekeandreas.luedeke@psi.chQuestionWindows3.0.0Re: Permission to view

Yes, it is possible. And explained in ELOG documentation.

Banata Wachid Ridwan wrote:

Hello,

related to the permission, is it possible to set permission ?, so only the owner or certain people can view list all logbok and regular member can only see their own logbook, not the others.

thanx for the help
 

 

ELOG V3.1.5-3fb85fa6