Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 443 of 808  Not logged in ELOG logo
    icon2.gif   Re: Isolating search urls, posted by Stefan Ritt on Mon Aug 17 11:36:49 2015 

No, no and again: no.

Philip Leung wrote:

Would there be a simple way to redirect all URLs BUT the ones which trigger searches?

Stefan Ritt wrote:

For any other filter you need "&<attribute>=", which of course requires the knowlede of all attributes. There is no other "standard" flag in the URL indicating a search.

Philip Leung wrote:

This only applies to searches which specify that they are searching through the message text though. It would not work for things like quick filter

Stefan Ritt wrote:

Look for "&subtext=" in the URL

Philip Leung wrote:

Is there no good way of differentiating search operations from others by URL?

Philip Leung wrote:

Thanks for the quick response!

It's great to hear that multi-threading is in the works as this has been my main issue with an otherwise very nice piece of software. I do, however, feel like we should be able to get my slightly hacky approach to work to hold us over until you finish.

The idea is to run separate ELOG instances in read-only mode dedicated to these types of requests. I've managed to sync up the logbook indexation of each instance so now, unless there's some statefulness to ELOG that I'm forgetting about, I only need to make sure that requests are forwarded to the right instance.

 

Stefan Ritt wrote:

I guess the underlying problem is the long time these requests take and block other users.

I have pretty high on my todo list to convert ELOG into a multi-threaded server which would fix this completely. So if you are patient enough (=months) you might get what you want.

Philip Leung wrote:

Hello all,

I am in need of isolating GET-requests referring to long-running, read-only elog functions such as search/filter/sort in our Apache proxy and redirecting them elsewhere. There does not, however, appear to be any easy way of reliably isolating these functions (with the exception of sort) by only looking at the URL.

Does anybody have any suggestions?

Regards,

Philip

 

 

 

 

 

 

 

 

    icon2.gif   Re: Isolating search urls, posted by Philip Leung on Mon Aug 17 11:52:54 2015 

Noted. Thank you for your time

Stefan Ritt wrote:

No, no and again: no.

Philip Leung wrote:

Would there be a simple way to redirect all URLs BUT the ones which trigger searches?

Stefan Ritt wrote:

For any other filter you need "&<attribute>=", which of course requires the knowlede of all attributes. There is no other "standard" flag in the URL indicating a search.

Philip Leung wrote:

This only applies to searches which specify that they are searching through the message text though. It would not work for things like quick filter

Stefan Ritt wrote:

Look for "&subtext=" in the URL

Philip Leung wrote:

Is there no good way of differentiating search operations from others by URL?

Philip Leung wrote:

Thanks for the quick response!

It's great to hear that multi-threading is in the works as this has been my main issue with an otherwise very nice piece of software. I do, however, feel like we should be able to get my slightly hacky approach to work to hold us over until you finish.

The idea is to run separate ELOG instances in read-only mode dedicated to these types of requests. I've managed to sync up the logbook indexation of each instance so now, unless there's some statefulness to ELOG that I'm forgetting about, I only need to make sure that requests are forwarded to the right instance.

 

Stefan Ritt wrote:

I guess the underlying problem is the long time these requests take and block other users.

I have pretty high on my todo list to convert ELOG into a multi-threaded server which would fix this completely. So if you are patient enough (=months) you might get what you want.

Philip Leung wrote:

Hello all,

I am in need of isolating GET-requests referring to long-running, read-only elog functions such as search/filter/sort in our Apache proxy and redirecting them elsewhere. There does not, however, appear to be any easy way of reliably isolating these functions (with the exception of sort) by only looking at the URL.

Does anybody have any suggestions?

Regards,

Philip

 

 

 

 

 

 

 

 

 

    icon2.gif   Re: Is there maximum number of entries?, posted by Stefan Ritt on Thu Jun 2 21:28:19 2011 

Hung Dao wrote:

Does anyone know whether ELOG has limit number of entries or it can create new entries as many as it can go?  Thanks.

The number of entries is not limited. But if there are very many entries, searching can get a bit slow. We have installations with ~100'000 entries and they work still fine. 

    icon2.gif   Re: Is there a way to upload a file in custom input?, posted by Stefan Ritt on Tue Dec 15 15:19:25 2020 

When you submit a "normal" elog entry, you can click on "Choose file" to add an attachment. On a mobile device, you will then be asked to select a photo from your library or take one with your camera. You can do the same on a custom form. You have to extract the code from the normal submissoin form and program it on your custom page. It needs however some work and might not be straight forward.

Stefan

Satyajit Jena wrote:

Hi,

I am trying to implement a Custom input forms by following this  https://elog.psi.ch/elogs/Contributions/49. Is there a way to also insert an image or files to it? I want to take a snap from the iPad and want that to go as an attachment or attach a file(s) into the form. Is there a way to do that?

Your suggestions are highly appreciated.

Regards,

sjena

 

 

    icon2.gif   Re: Is there a way to upload a file in custom input?, posted by Satyajit Jena on Tue Dec 15 17:41:57 2020 

Thanks Stefan,

I am not yet able to figure out how attachment submission is done, I am trying. It would be helpful if you can refer me to some pointer.

With regards,

satyajit

Stefan Ritt wrote:

When you submit a "normal" elog entry, you can click on "Choose file" to add an attachment. On a mobile device, you will then be asked to select a photo from your library or take one with your camera. You can do the same on a custom form. You have to extract the code from the normal submissoin form and program it on your custom page. It needs however some work and might not be straight forward.

Stefan

Satyajit Jena wrote:

Hi,

I am trying to implement a Custom input forms by following this  https://elog.psi.ch/elogs/Contributions/49. Is there a way to also insert an image or files to it? I want to take a snap from the iPad and want that to go as an attachment or attach a file(s) into the form. Is there a way to do that?

Your suggestions are highly appreciated.

Regards,

sjena

 

 

 

    icon2.gif   Re: Is there a way to send email notification without attachment, posted by Stefan Ritt on Mon Sep 8 17:24:57 2008 
Samuel Morris wrote:

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.

You have to use 

Email Format = 47

to remove the attachments. The encoding is decimal, not binary, so you have to do 1+2+4+8+32.

    icon2.gif   Re: Is there a way to send email notification without attachment, posted by Samuel Morris on Tue Sep 9 08:03:55 2008 

Stefan Ritt wrote:
Samuel Morris wrote:

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.

You have to use 

Email Format = 47

to remove the attachments. The encoding is decimal, not binary, so you have to do 1+2+4+8+32.

 Dear Stefan,

I tried Email Format =47 . still am having problems.

With Postfix limitation of 1MB elog is giving error message of 'Error sending Email via "<domain name>": 5.3.4 Error: message file too big

Without Postfix limitation, its sending email with the attachment.

Thanks

    icon2.gif   Re: Is there a way to send email notification without attachment, posted by Stefan Ritt on Tue Sep 9 08:42:52 2008 

 

Samuel Morris wrote:

 

Stefan Ritt wrote:
Samuel Morris wrote:

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.

You have to use 

Email Format = 47

to remove the attachments. The encoding is decimal, not binary, so you have to do 1+2+4+8+32.

 

 Dear Stefan,

I tried Email Format =47 . still am having problems.

With Postfix limitation of 1MB elog is giving error message of 'Error sending Email via "<domain name>": 5.3.4 Error: message file too big

Without Postfix limitation, its sending email with the attachment.

Thanks

 

 I guess you are modifying the wrong elogd.cfg file. Note that you have to send a HUP signal after you changed elgod.cfg for the daemon to re-read the file. Try modifying something else (like adding a new attribute) and see if the daemon sees the change.

ELOG V3.1.5-3fb85fa6