Discussion:
[graylog2] How to auto-Run Logstash Service when server Reboot?
Shrawan Bhagwat
2016-02-04 10:24:35 UTC
Permalink
Hi All,

I have created Logstash service but when the server reboot we have to
manually start that service.

Can someone tell me, how can i auto start Logstash Service when the server
Reboot?

Thanks in Advance. :)

Regards,
Shrawan
--
You received this message because you are subscribed to the Google Groups "Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to graylog2+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/88b130cd-0e82-4c42-8547-39e4c22524ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Roger Guzman
2016-02-04 15:07:40 UTC
Permalink
In Debian use the chkconfig command to enable services to start:
chkconfig [service] on | off
Example:
chkconfig apache2 on

what's your OS?
El jueves, 4 de febrero de 2016, 5:54:35 (UTC-4:30), Shrawan Bhagwat
Post by Shrawan Bhagwat
Hi All,
I have created Logstash service but when the server reboot we have to
manually start that service.
Can someone tell me, how can i auto start Logstash Service when the server
Reboot?
Thanks in Advance. :)
Regards,
Shrawan
--
You received this message because you are subscribed to the Google Groups "Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to graylog2+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/93e8d68d-1f03-4ed8-ba3b-a93bec3c1b22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Shrawan Bhagwat
2016-02-04 16:26:02 UTC
Permalink
Hi Roger,

We are using LINUX and UNIX.
Please guide us for these.

Thanks. :)

Regards,
Shrawan
--
You received this message because you are subscribed to the Google Groups "Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to graylog2+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/3dd0e13f-0159-48ae-ab63-209e3d0cf3a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Roger Guzman
2016-02-04 19:08:18 UTC
Permalink
There must first be initiated elasticsearch and mongodb services, this can
be secured with the following instructions:

chkconfig mongodb on
chkconfig elasticsearch on

Note: you might need to install chkconfig

Then you must set the start graylog-server and graylog-web as follows:

systemctl enable graylog-server
systemctl enable graylog-web


This should be enough, reboot and cross your fingers: D

----------

Primero deben haber iniciado los servicios mongodb y elasticsearch, esto lo
puedes asegurar con las siguientes intrucciones:

chkconfig mongodb on
chkconfig elasticsearch on

Luego se debe configurar el inicio graylog-server y graylog-web de la
siguiente forma:

systemctl enable graylog-server
systemctl enable graylog-web

Con esto debería bastar, reinicia y reza :D

El jueves, 4 de febrero de 2016, 11:56:02 (UTC-4:30), Shrawan Bhagwat
Post by Shrawan Bhagwat
Hi Roger,
We are using LINUX and UNIX.
Please guide us for these.
Thanks. :)
Regards,
Shrawan
--
You received this message because you are subscribed to the Google Groups "Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to graylog2+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/98a30d5a-991e-4442-a541-854476f7d339%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Shrawan Bhagwat
2016-02-05 07:38:42 UTC
Permalink
Hi Roger,

I have no Idea of how to create service of elasticsearch and mongodb.
I have gone through the following
doc: https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-service.html
But still i am unable to do this.
We are having chkconfig installed on servers.

can you please help us with this?

Thanks :)

Regards,
Shrawan
Post by Roger Guzman
There must first be initiated elasticsearch and mongodb services, this
chkconfig mongodb on
chkconfig elasticsearch on
Note: you might need to install chkconfig
systemctl enable graylog-server
systemctl enable graylog-web
This should be enough, reboot and cross your fingers: D
----------
Primero deben haber iniciado los servicios mongodb y elasticsearch, esto
chkconfig mongodb on
chkconfig elasticsearch on
Luego se debe configurar el inicio graylog-server y graylog-web de la
systemctl enable graylog-server
systemctl enable graylog-web
Con esto debería bastar, reinicia y reza :D
El jueves, 4 de febrero de 2016, 11:56:02 (UTC-4:30), Shrawan Bhagwat
Post by Shrawan Bhagwat
Hi Roger,
We are using LINUX and UNIX.
Please guide us for these.
Thanks. :)
Regards,
Shrawan
--
You received this message because you are subscribed to the Google Groups "Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to graylog2+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/871cacd0-b14f-471c-96da-e8e48c0c8dc4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Roger Guzman
2016-02-05 13:52:32 UTC
Permalink
mmm... ok... how to install mongodb y elasticsearch?
when I install this the services were created automagically :D
versions?

El viernes, 5 de febrero de 2016, 3:08:42 (UTC-4:30), Shrawan Bhagwat
Post by Shrawan Bhagwat
Hi Roger,
I have no Idea of how to create service of elasticsearch and mongodb.
https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-service.html
But still i am unable to do this.
We are having chkconfig installed on servers.
can you please help us with this?
Thanks :)
Regards,
Shrawan
Post by Roger Guzman
There must first be initiated elasticsearch and mongodb services, this
chkconfig mongodb on
chkconfig elasticsearch on
Note: you might need to install chkconfig
systemctl enable graylog-server
systemctl enable graylog-web
This should be enough, reboot and cross your fingers: D
----------
Primero deben haber iniciado los servicios mongodb y elasticsearch, esto
chkconfig mongodb on
chkconfig elasticsearch on
Luego se debe configurar el inicio graylog-server y graylog-web de la
systemctl enable graylog-server
systemctl enable graylog-web
Con esto debería bastar, reinicia y reza :D
El jueves, 4 de febrero de 2016, 11:56:02 (UTC-4:30), Shrawan Bhagwat
Post by Shrawan Bhagwat
Hi Roger,
We are using LINUX and UNIX.
Please guide us for these.
Thanks. :)
Regards,
Shrawan
--
You received this message because you are subscribed to the Google Groups "Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to graylog2+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/ab4f91be-198a-400d-84bb-f636ff8a9328%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Shrawan Bhagwat
2016-02-08 11:45:36 UTC
Permalink
Hi Roger,

We are using following combinations:
MongoDB-86_64-rhel62-3.0.3
Logstash-1.5.4
Elasticsearch-1.7.2
Graylog-1.2.1
Redis-3.0.1

After installation of any of the component, services were not created
automatically. :(
Post by Roger Guzman
mmm... ok... how to install mongodb y elasticsearch?
when I install this the services were created automagically :D
versions?
El viernes, 5 de febrero de 2016, 3:08:42 (UTC-4:30), Shrawan Bhagwat
Post by Shrawan Bhagwat
Hi Roger,
I have no Idea of how to create service of elasticsearch and mongodb.
https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-service.html
But still i am unable to do this.
We are having chkconfig installed on servers.
can you please help us with this?
Thanks :)
Regards,
Shrawan
Post by Roger Guzman
There must first be initiated elasticsearch and mongodb services, this
chkconfig mongodb on
chkconfig elasticsearch on
Note: you might need to install chkconfig
systemctl enable graylog-server
systemctl enable graylog-web
This should be enough, reboot and cross your fingers: D
----------
Primero deben haber iniciado los servicios mongodb y elasticsearch, esto
chkconfig mongodb on
chkconfig elasticsearch on
Luego se debe configurar el inicio graylog-server y graylog-web de la
systemctl enable graylog-server
systemctl enable graylog-web
Con esto debería bastar, reinicia y reza :D
El jueves, 4 de febrero de 2016, 11:56:02 (UTC-4:30), Shrawan Bhagwat
Post by Shrawan Bhagwat
Hi Roger,
We are using LINUX and UNIX.
Please guide us for these.
Thanks. :)
Regards,
Shrawan
--
You received this message because you are subscribed to the Google Groups "Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to graylog2+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/cbe4c2c7-1d85-44c0-aef9-b70e44f72276%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jan Doberstein
2016-02-09 08:56:10 UTC
Permalink
Hej Shrawan,

i notice no Information what OS you are running. As already mentioned from
Roger, on install it should install a service/init script which just need
to be enabled to run on System Startup. But as out in the wild are many
common ways to activate a Service the Information what OS and Version you
are using is highly needed.

But you might find an answer here:
https://www.digitalocean.com/community/tutorials/how-to-configure-a-linux-service-to-start-automatically-after-a-crash-or-reboot-part-1-practical-examples


regards
Jan
Post by Shrawan Bhagwat
Hi Roger,
MongoDB-86_64-rhel62-3.0.3
Logstash-1.5.4
Elasticsearch-1.7.2
Graylog-1.2.1
Redis-3.0.1
After installation of any of the component, services were not created
automatically. :(
Post by Roger Guzman
mmm... ok... how to install mongodb y elasticsearch?
when I install this the services were created automagically :D
versions?
El viernes, 5 de febrero de 2016, 3:08:42 (UTC-4:30), Shrawan Bhagwat
Post by Shrawan Bhagwat
Hi Roger,
I have no Idea of how to create service of elasticsearch and mongodb.
https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-service.html
But still i am unable to do this.
We are having chkconfig installed on servers.
can you please help us with this?
Thanks :)
Regards,
Shrawan
Post by Roger Guzman
There must first be initiated elasticsearch and mongodb services, this
chkconfig mongodb on
chkconfig elasticsearch on
Note: you might need to install chkconfig
systemctl enable graylog-server
systemctl enable graylog-web
This should be enough, reboot and cross your fingers: D
----------
Primero deben haber iniciado los servicios mongodb y elasticsearch,
chkconfig mongodb on
chkconfig elasticsearch on
Luego se debe configurar el inicio graylog-server y graylog-web de la
systemctl enable graylog-server
systemctl enable graylog-web
Con esto debería bastar, reinicia y reza :D
El jueves, 4 de febrero de 2016, 11:56:02 (UTC-4:30), Shrawan Bhagwat
Post by Shrawan Bhagwat
Hi Roger,
We are using LINUX and UNIX.
Please guide us for these.
Thanks. :)
Regards,
Shrawan
--
You received this message because you are subscribed to the Google Groups
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/graylog2/cbe4c2c7-1d85-44c0-aef9-b70e44f72276%40googlegroups.com
<https://groups.google.com/d/msgid/graylog2/cbe4c2c7-1d85-44c0-aef9-b70e44f72276%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
| Voice: +49 173 7100308 | Text: ***@jalogisch.de
| http:// <http://about.me/jandoberstein>jalogis.ch/bio
|---
| send from my extraordinary device
--
You received this message because you are subscribed to the Google Groups "Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to graylog2+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/CAGm-bLYwVKz08%2Bagp4%3DQYyk0a4Z7obUs7usQeTrQmkYnekrfkw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Shrawan Bhagwat
2016-02-05 07:44:09 UTC
Permalink
Hi Roger,

I have no Idea of how to create service of elasticsearch and mongodb.
I have gone through the following doc:
https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-service.html
But still i am unable to do this.
We are having chkconfig installed on servers.

can you please help us with this?

Thanks :)

Regards,
Shrawan
Post by Shrawan Bhagwat
Hi All,
I have created Logstash service but when the server reboot we have to
manually start that service.
Can someone tell me, how can i auto start Logstash Service when the server
Reboot?
Thanks in Advance. :)
Regards,
Shrawan
--
You received this message because you are subscribed to the Google Groups "Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to graylog2+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/9e218216-5df7-44ca-8896-926f28c0ce5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...