Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   Date conversion, posted by Martin Neumann on Tue Feb 23 12:12:14 2021 
    icon2.gif   Re: Date conversion, posted by Andreas Luedeke on Tue Feb 23 17:20:39 2021 
       icon2.gif   Re: Date conversion, posted by Martin Neumann on Wed Feb 24 08:44:42 2021 
          icon2.gif   Re: Date conversion, posted by Sebastian Schenk on Tue Mar 2 15:17:56 2021 
    icon2.gif   Re: Date conversion, posted by Stefan Ritt on Wed Mar 10 17:30:23 2021 
Message ID: 69310     Entry time: Wed Feb 24 08:44:42 2021     In reply to: 69309     Reply to this: 69312
Icon: Reply  Author: Martin Neumann  Author Email: elog.20.beazy@spamgourmet.com 
Category: Question  OS: Linux  ELOG Version: V3.1.4-80633ba 
Subject: Re: Date conversion 

I don't feel comfortable allowing the elog daemon to execute random shell scripts. Is there no other way?

Andreas Luedeke wrote:

If you define a field as "datetime" then you'll get the standard ELOG input field for datetime. It will be stored as seconds of the epoch (seconds since 1.1.1970).

You can define a field as a default string input, then it is stored as a string. But you can convert that string by a shell scripts into seconds of the epoch. See "subst" command in the documentation of the elog syntax:

ELOG V3.1.5-3fb85fa6