Can I load a .js file up and just tell the code function to run the js file?
mromano
Posts: 1 mod
I'm using a code function in my pipeline for some extra custom logic, but exporting that as yml config is kinda ugly. Is there any chance I can load a .js file up and just tell the code function to run the js file? This would make local testing of my custom js a much nicer experience. I am doing this with samples for my test cases where I have the sample file locally and I load it up to the cribl server, and reference the file in my samples.yml. I'd love to do basically the same thing with a code function.
0
Answers
-
This question has been moved to Cribl Curious: https://community.cribl.io/discussion/333/load-a-js-file-to-run-a-code-function
0