Skip to content

[input_mongodb] Bloblang query is not working with ISODate field #2890

Closed Answered by mihaitodor
lytuan99 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @lytuan99 👋 Try root.created_at = {"$gte": "2024-02-02".ts_strptime("%Y-%m-%d")} for example. Also, this should work: root.created_at = {"$gte": now().ts_parse("2006-01-02T15:04:05Z07:00")}. The 2006-01-02T15:04:05Z07:00 format is the reference format used for RFC3339 in Go as documented here: https://pkg.go.dev/time#pkg-constants.

PS: Converting this to a discussion as mentioned in #2026.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by lytuan99
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2889 on September 22, 2024 15:09.