Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple arguments are not properly passed to command #7

Closed
gitime opened this issue Feb 20, 2017 · 3 comments
Closed

Multiple arguments are not properly passed to command #7

gitime opened this issue Feb 20, 2017 · 3 comments
Labels

Comments

@gitime
Copy link

gitime commented Feb 20, 2017

Hi,

I use execbeat to execute my shellscript, which accept multiple arguments. I have my execbeat configuration like;

execbeat:
  execs:
    -
      cron: "@every 5s"
      command: "/shellscripts/test.sh"
      args: "arga argb argc"
      document_type: execbeat
      fields:
        host: 192.168.0.1
        beatname: "beat1"
output.console:
  enabled: true
  pretty: true

my scellscript is very simple, its like;

#!/bin/sh
echo $1

but my ecexbeat always outputs;

arga argb argc

I am expecting only one output arga, how can I do this?

Thank you.

@christiangalsterer
Copy link
Owner

Hi
I just tested it and I think you found a bug.
Need to look into it how to fix it.

@christiangalsterer
Copy link
Owner

I have found the issue and will provide a release tomorrow.

@christiangalsterer christiangalsterer changed the title How to pass multiple arguments? Multiple arguments are not properly passed Feb 20, 2017
@christiangalsterer christiangalsterer changed the title Multiple arguments are not properly passed Multiple arguments are not properly passed to command Feb 20, 2017
christiangalsterer added a commit that referenced this issue Feb 20, 2017
Multiple arguments are not properly passed to command
@christiangalsterer
Copy link
Owner

Release 3.0.1 is now available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants