Load a JS file to run a Code Function
Tony Reinke - Cribl
Posts: 134 admin
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
Original message in Cribl Community Slack Message:https://cribl-community.slack.com/archives/C02A9EQV61J/p1683553724131069
Tagged:
0