We have updated our Terms of Service, Code of Conduct, and Addendum.

Load a JS file to run a Code Function

Tony Reinke - Cribl
Tony Reinke - Cribl Posts: 134 admin
edited May 2023 in General Discussions
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.

Original message in Cribl Community Slack Message:https://cribl-community.slack.com/archives/C02A9EQV61J/p1683553724131069
Tagged: