I have installed logstash using RPM. It created sample file in
/etc/init/logstash.conf. When I start the process using
sudo initctl start logstash, it is creating pid and the service is running in the background. But it does not seem to do anything. Overall, I have two issues now
- When the process is running it is not doing anything
- Right now (after fine tuning some settings?), it looks like it respawning the process.
Sample log for 2nd issue, from
Feb 13 11:24:45 myhost init: logstash main process (5944) terminated with status 1 Feb 13 11:24:45 myhost init: logstash main process ended, respawning Feb 13 11:25:05 myhost init: logstash main process (6010) terminated with status 1 Feb 13 11:25:05 myhost init: logstash main process ended, respawning
As far as issue-1 is concerned, I am not seeing any updates under the logstash logs folder (
When i run the command using command line then it is ingesting the data (doing some action at least).
/usr/share/logstash/bin/logstash -f /usr/share/logstash/config/conf.d
These are my settings:
LS_HOME="/usr/share/logstash" LS_SETTINGS_DIR="/usr/share/logstash/config" #LS_SETTINGS_DIR="/etc/logstash" LS_PIDFILE="/var/run/logstash.pid" LS_USER="logstash" LS_GROUP="logstash" LS_GC_LOG_FILE="/var/log/logstash/gc.log" LS_OPEN_FILES="16384" LS_NICE="19" SERVICE_NAME="logstash" SERVICE_DESCRIPTION="logstash"
path.data: /var/lib/logstash path.config: /usr/share/logstash/config/conf.d/*.conf path.logs: /var/log/logstash
I have placed two
.conf files under
Please help me as how to configure the logstash service which can refer to some
*.conf files which will contain specific inputs,filters & outputs. The reason I want logstash to run as service is that there will be updates to the files being monitored (i.e. which we are interested to ingest data).
Thanks for taking a look at my question.