Comments (7)
Hi,
apachebeat (or other beats) doesn't have any special start or stop script which would handle 'stoping'. Kill command is the way to stop it.
Implementer of the beat is usually responsible for this task for each environment.
If you have started your apachebeat in terminal and it is running in terminal as process, simple Ctrl+C should stop apachebeat.
If you sent your apachebeat to background, either call if back (fg) and stop by Ctrl+C, or execute simple 'kill ' command. However, 'klill -9 ' is not necessary under normal circumstances.
On the other hand, I am thinking of creating a script for start and stop of apachebeat but I cannot promise a thing for this task in near future.
Rado
from apachebeat.
Hi,thanks for your replay
I know golang can't been a "daemon " in linux without other tools like go-daemon
I have try another beats and they do easy quit with Ctrl+C,or 'kill ' command
But apachebeat ,I must use 'kill -9' command
so I think maybe it is a bug! please check
from apachebeat.
Hi,
thanks for feedback. I understand.
It looks like I cannot rule out a bug possibility.
Let's try to investigate further together to find out what happened.
Let me ask a few questions first.
1, Prior to 'kill -9' is apachebeat behaving correctly? I mean does it produce correct output and you can see your apache status also in Kibana?
2, What version of Go do you use?
3, Do you have latest version of apachebeat?
4, Did you try to turn on debug option?
5, What is your OS version and is it up to date with patches?
Let start with this few questions.
Thanks,
Rado
from apachebeat.
1、yes, apachebeat behaving correctly before I try to stop in neight in Ctrl-C nor kill
2、my go version is 'go1.5.1 linux/amd64'
3、yes I use the latest version of apachebeat '1.0.0-beta2'
4、I am not sure I have turn on debug option ,in /etc/apachebeat/apachebeat.yml
logging:
to_syslog: true
level: debug
And when I stop apachebeat use kill ,I saw the log
" Background saving terminated with success"
But acturly it not stop
BTW ,I use go-daemon from https://github.com/tsg/go-daemon.git to star the apachebeat
the init script file is simulate to the topbeat
5、My OS version is
2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
CentOS release 6.6 (Final)
I am not sure I have apply all the patches.
BTW I compile another community beats they do exit well!
sorry for by bad english !
Thanks.
from apachebeat.
Thanks,
Let's try more. Can we try to simplify the use case?
1, Install the latest GO (1.5.3)
2, checkout the latest version of apachebeat. Not beta2 release.
3, please run apachebeat without go-daemon
4, keep it running and then try to stop it by simple kill, or Crtl+C
Try to run it from command line:
./apachebeat -c /path/to/etc/apachebeat.yml
Meanwhile, I'll try to use and check on do-daemon. Maybe, I can replicate it localy and find out more.
Thanks
from apachebeat.
I install the last go ver 1.5.3
and every thing ok,it can normal stop apachebeat
thanks
from apachebeat.
Hi,
thanks for your verification.
I appreciate all your inpu.
Rado
from apachebeat.
Related Issues (20)
- Update error handling in main()
- Refactor beats to match model from beat-generator and exit param
- Move elasticbeat.yml to 'root' folder and update documentation
- Update Makefile to include main makefile from libbeat HOT 3
- Implement Go vendor/ dependencies
- Possible trademark infrigement HOT 4
- windows file name error HOT 1
- apachebeat sending wrong field type (string instead of numeric) HOT 15
- Upgrade to Go 1.6
- Add basich authentication for secured status pages HOT 1
- Simplify configuration the way that no "?auto" part is needed
- Logstash flush interval HOT 4
- apache.connections.connsTotal HOT 4
- Update GO to 1.6.3
- Update Go to 1.7.1
- Update elastic beat to be compatible with libbeat 5 and ES5
- Update GO to version 1.7.3
- Implement new Beat interface
- Implement godeps HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apachebeat.