Logstash agent doesn't run as a daemon on MAC OS X 10.9.1
- by user329324
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?