node-red-contrib-logstash icon indicating copy to clipboard operation
node-red-contrib-logstash copied to clipboard

Unable to Generate Logstash configuration

Open arkroop opened this issue 7 years ago • 5 comments

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

arkroop avatar Jan 17 '18 12:01 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)

consulthys avatar Jan 17 '18 12:01 consulthys

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 command

arkroop avatar Jan 17 '18 12:01 arkroop

You need to cd into the node-red-contrib-logstash folder you've checked out

consulthys avatar Jan 17 '18 13:01 consulthys

@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

arkroop avatar Jan 17 '18 13:01 arkroop

Ideally, I'd like to put a button somewhere on the UI, but I've not gotten there yet.

consulthys avatar Jan 17 '18 13:01 consulthys