This message originated from Cribl Community Slack.
Click here to view the original link.
Good morning,
I am working on configuring a REST Collector for retrieving Akamai EAA logs. I have gotten it to successfully connect and retrieve logs when inputting a static start and end time in the collect parameters, using Unix Epoch Time. I cannot, however, figure out what I am doing wrong in getting it to work with an expression to add a dynamic value for those start and end collect parameters.
Has anyone worked out the expression for dynamic Unix Epoch Time creation that works within the collect parameters in the REST collector? Would be incredibly helpful
Thanks in advance.
Solved
Cribl Stream: Dynamic Unix Epoch Time for REST Collector collect
Best answer by Jon Rust
JS fields should default to interpreting as JS expressions. For boring and tedious reasons there are some cases where Stream tries to be smart and figure out if you want an expression or a string. Safest way is to always wrap in back ticks as you showed above.
View originalSign up
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
