node-red-contrib-logstash
node-red-contrib-logstash copied to clipboard
Unable to Generate Logstash configuration
Hi,
I am using the Logstash with the node red and create some example workflow. I am trying to Generate the Logstash configuration after the deployment. But I am not getting any option to generate the Logstash configuration. Please let me know how to generate the configuration in node-red.
Thanks, Arkroop
Hi @arkroop, you can use the nr2ls.js
script.
USAGE: node nr2ls <flowId> <outFile>
<flowId> the id of the flow to generate the Logstash config for
<outFile> the name of the Logstash config file (defaults to flow name)
Hi @consulthys
Thanks for your prompt response. I am trying to execute the given command in nodejs command prompt but getting issue. Please find the attached screen shot of the same. Let me know whats wrong I am doing and correct way to do the same.
Thanks,
Arkroop
You need to cd into the node-red-contrib-logstash
folder you've checked out
@consulthys
Thanks It works now. But I would like to know that can we do the same using Node-Red UI or this is manual task to run the same with command prompt.
Thanks, Arkroop
Ideally, I'd like to put a button somewhere on the UI, but I've not gotten there yet.