Community discussions

 
MikRu
just joined
Topic Author
Posts: 16
Joined: Sat Mar 09, 2013 6:59 pm

parse log "today"

Fri Oct 26, 2018 10:15 am

Hi 2 all

Question: How to parse today records in log?

When you make
/log print where message ~"Smth"
You will recieve:
oct/23 16:24:54 info Smth asdasd
oct/24 16:24:54 info Smth asdasd
oct/25 16:24:54 info Smth x124
08:59:21 info Smth ccasdasd
08:59:21 info Smth xar234
08:59:21 info Smth dsfdg
Strings from log for actual date is withoud date, only time


When you make
/log print where message ~"Smth" time~"oct/25"
You will recieve:
oct/25 16:24:54 info Smth x124


When you make
/log print where message ~"Smth" time~"oct/26"
You will recieve: nothing


What is the righ way to parse today log?
 
MikRu
just joined
Topic Author
Posts: 16
Joined: Sat Mar 09, 2013 6:59 pm

Re: parse log "today"

Fri Oct 26, 2018 10:45 am

i have found a way

/log print where message ~"Smth" time>([/system clock get time] - 24h)
or
/log print where message ~"Smth" time>"00:00:00"


New question: How can i export logs 1 day back (oct25 00:00:00 -> oct25 23:59:59)? 8)

Who is online

Users browsing this forum: No registered users and 12 guests