Logstash agent doesn't run as a daemon on MAC OS X 10.9.1

Posted by user329324 on Super User See other posts from Super User or by user329324
Published on 2014-06-04T14:09:49Z Indexed on 2014/06/06 9:29 UTC
Read the original article Hit count: 327

Filed under:
|
|
|
|

I need to run the logstash agent as a Daemon on an MAC OS X System whenever the system boots up

terminal: /usr/local/logstash/bin/logstash agent -f /usr/local/etc/cvlog.conf

Per terminal the program is working succesfully but as an daemon it doesn't start.

My com.bcd.logstash.plist

<plist version="1.0">
<dict>
<key>Label</key>
<string>com.bcd.logstash</string>
<key>KeepAlive</key>

<dict>
<key>SuccessfulExit</key>
</false>
</dict>
<key>ProgramArguments</key> 
<array>
      <string>/usr/local/logstash/bin/logstash</string>
      <string>agent</string>
      <string>-f</string>
      <string>/usr/local/etc/cvlog.conf</string>
</array>
<key>RunAtLoad</key>
</true> 
</dict>
</plist>

I start with:

launchtl load /Library/LaunchDaemons/com.bcd.logstash.plist

Syslog Error Message

com.apple.launchd[1] (com.bcd.logstash[pid]): Exited with code:1

com.apple.launchd[1] (com.bcd.logstash[pid]): Exited with code:143

What's wrong with my plist?

© Super User or respective owner

Related posts about osx

Related posts about mac