Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error[E105]: call to undefined function to_timestamp #8

Open
ben-auo opened this issue Sep 14, 2024 · 1 comment · May be fixed by #9
Open

error[E105]: call to undefined function to_timestamp #8

ben-auo opened this issue Sep 14, 2024 · 1 comment · May be fixed by #9

Comments

@ben-auo
Copy link

ben-auo commented Sep 14, 2024

https://github.com/FoxIO-LLC/LogSlash/blob/main/Vector/logslash-zeek_conn.toml#L27

As of Vector 0.32:

The to_timestamp function in VRL was deprecated. Instead, the following functions should be used:

parse_timestamp to parse string timestamps
from_unix_timestamp to parse integer timestamps
@ben-auo
Copy link
Author

ben-auo commented Sep 14, 2024

I solved with https://github.com/corelight/json-streaming-logs and .timestamp = parse_timestamp!(.ts, format: "%Y-%m-%dT%H:%M:%S%.fZ")

@ben-auo ben-auo linked a pull request Sep 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant