on the off-chance that ISO8601 timestamp parsing is new (unlikely since you're dealing with logs), I'll point out that parsing them is relatively easy in Go:
import "time" const RFC3339NanoNumericTZ = "2006-01-02T15:04:05.999999999-07:00" tmstr := "2019-05-23T15:09:57.000-05:00" tm, err = time.Parse(RFC3339NanoNumericTZ, tmstr) panicOn(err) On Sat, Nov 19, 2022 at 3:33 PM Jason E. Aten <j.e.a...@gmail.com> wrote: > On Sat, Nov 19, 2022 at 8:45 AM david lion <davidli...@gmail.com> wrote: > >> ...could you let us know more about what kind of queries you want to >> run? The open-source C++ code supports wildcard queries but some users >> prefer grep-like regex, SQL-like boolean expressions, etc. We haven't yet >> settled on one, especially for a binding that needs to be somewhat stable. >> > > I'm not sure what SeaweedFS needs, so maybe Chris Lu will chime in too. > > Usually when I'm going through logs, I can narrow my search down to a time > span with at least roughly known begin and end points. Then inside that > span of log entries, well its really anything goes. It could be content > based search, it could be field = value based search; it just really > depends on the task at hand. So the only thing that I can say with > conviction is hopefully you can make it very easy to specify an ISO8601 > begin timestamp (down to the nanosecond) and an ISO8601 endx timestamps > (down to the nanosecond) so that on the [begin, endx) interval is the only > thing searched. The [begin, endx) convention is typical for rolling > queries that should not overlap, since incrementing both begin timestamp > and endx timestamp by (endx-begin) for example will partition (in the > mathematical sense of creating exhaustive and mutually exclusive subsets) > your data. > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAPNEFAbSZK3T3PhB8zo49rjrh2xz31FpyfQEtdOi2f8qeW_bLg%40mail.gmail.com.