Replies: 7 comments 11 replies
-
cc: @pranavmarla |
Beta Was this translation helpful? Give feedback.
-
From Slack https://fluent-all.slack.com/archives/C0CTQGHKJ/p1642553528164700 |
Beta Was this translation helpful? Give feedback.
-
I have two ideas:
Emitting records could help cases where an HTTP API or some other mechanism sends multiple metrics or logs inside a single record. If we combine that with the ability to store records between invocations lua filters could also perform a form of map/reduce on records to emit a single record from multiple. |
Beta Was this translation helpful? Give feedback.
-
Suggestion: A simple function to create a new timestamp with nanosecond precision. Background: I have encountered a situation where the timestamps provided via-syslog are unreliable. An example where this might occur in the wild is when using syslog with machines which experience time-drift and aren't corrected quickly enough. I know the best way to solve this problem is to fix the root cause, but it would be very useful to have the ability to simply tack on our own (accurate) timestamp. Unfortunately using Example: function append_time(tag, timestamp, record)
new_record = record
new_record["fluentbit_timestamp"] = fb_date() -- (this does not actually exist AFAIK)
return 1, timestamp, new_record
end |
Beta Was this translation helpful? Give feedback.
-
I'd love to see a way to retrieve a custom LUA/filtering configuration from a central source, so we can include or exclude certain windows Events by Event ID and Event Type. Caching the configuration in a file on startup would be helpful. |
Beta Was this translation helpful? Give feedback.
-
Suggestion: Background: |
Beta Was this translation helpful? Give feedback.
-
I have seen many use cases for installing packages, and I was wondering if we can solve this by supporting compiled lua files (luac.out) |
Beta Was this translation helpful? Give feedback.
-
We are looking for ways to improve user experience of lua filters and would like to ask the community for suggestions on how this can be done. One idea we currently have is to expose a standard library with commonly used utilities that will be available for all lua scripts. As an example, we could add a few functions that would simplify timestamp/table manipulation.
If any lua filter users would like to contribute to this discussion, please feel free to do so. Also, if you post here scripts that you wrote, we might have other ideas on how we can make things easier for you.
Beta Was this translation helpful? Give feedback.
All reactions