Closed ruiaylin closed 5 years ago
The slowsql in configured to exit on the EOF.
1559713574544136305 [info] input.slowsql detaching received: 0 msg:
Set the ticker_interval to 1 in that input cfg as documented here: http://mozilla-services.github.io/lua_sandbox/heka/input.html#Polling there is also an example here: http://mozilla-services.github.io/hindsight/tutorials/cookbooks.html#MySQL_Slow_Query_Log
The regular version of hindsight does not automatically shutdown when all inputs have completed (that is a feature of hindsight_cli), this is expected behavior. Normally with dynamic loading disabled you would use shutdown_on_terminate = true in the input configuration if it was considered mission critical see: http://mozilla-services.github.io/hindsight/configuration.html
@trink Thanks
ENV
OS Version : CentOS Linux release 7.4.1708 (Core) Hindsight : hindsight-0.15.0-1.x86_64.rpm Sandbox : luasandbox-1.3.2-1.x86_64.rpm
DESC
I using lpeg and tail.lua to handle mysql slow logs , and send the heka message to kafka.
I use the command bellow to start hindsight :
It works all right . But hindsight just handle the old messages in the slow log file . the message generate can't be handled continually , It was very strange. If i restart hindsight, it can do the messages from last point and then the handle stoped ( hindsight do not exit).
I do not know the reason at all .