Hello,

I'm trying to output to cbuf. I've narrowed down the issue to the "inject_payload("cbuf", title, status)". When it tries to run this function the filter stops.

Here is some output from heka:

2015/03/18 16:13:23
:Timestamp: 2015-03-18 16:13:23.197343981 +0000 UTC
:Type: heka.sandbox-output
:Hostname: localhost.localdomain
:Pid: 4042
:Uuid: 05a09e60-a181-4503-8a5e-e4377926a3b3
:Logger: ATSServer
:Payload: col: 2
ts: 1426695196580000000
col: 2
ts: 1426695196680000000
col: 2
ts: 1426695196780000000
col: 2
ts: 1426695196880000000
col: 2
ts: 1426695196980000000
col: 2
ts: 1426695197080000000
col: 2
ts: 1426695197180000000
col: 2
ts: 1426695197280000000
col: 2
ts: 1426695197390000128
col: 2
ts: 1426695197489999872
col: 2
ts: 1426695197590000128
col: 2
ts: 1426695197689999872
col: 2
ts: 1426695197790000128
col: 2
ts: 1426695197889999872
:EnvVersion:
:Severity: 7
:Fields:
| name:"payload_type" type:string value:"txt" representation:"file-extension"
    | name:"payload_name" type:string value:"debug"

2015/03/18 16:13:33 Plugin 'ATSServer': stopped
2015/03/18 16:13:33 Plugin 'ATSServer': has stopped, exiting plugin without shutting down. 2015/03/18 16:13:33 {"index":{"_index":"heka.sandbox-output-2015.03.18","_type":"heka.sandbox-output"}} {"Uuid":"b9ad0c86-28a4-46a6-8cc4-69b438de65d0","Timestamp":"2015-03-18T16:13:33.180Z","Type":"heka.sandbox-output","Logger":"ATSServer","Severity":7,"Payload":"col: 2\u000ats: 1426695196580000000\u000acol: 2\u000ats: 1426695196680000000\u000acol: 2\u000ats: 1426695196780000000\u000acol: 2\u000ats: 1426695196880000000\u000acol: 2\u000ats: 1426695196980000000\u000acol: 2\u000ats: 1426695197080000000\u000acol: 2\u000ats: 1426695197180000000\u000acol: 2\u000ats: 1426695197280000000\u000acol: 2\u000ats: 1426695197390000128\u000acol: 2\u000ats: 1426695197489999872\u000acol: 2\u000ats: 1426695197590000128\u000acol: 2\u000ats: 1426695197689999872\u000acol: 2\u000ats: 1426695197790000128\u000acol: 2\u000ats: 1426695197889999872\u000aEntering function timer_event","EnvVersion":"","Pid":4042,"Hostname":"localhost.localdomain","payload_type":"txt","payload_name":"debug"}
2015/03/18 16:13:33
:Timestamp: 2015-03-18 16:13:33.180705016 +0000 UTC
:Type: heka.sandbox-output
:Hostname: localhost.localdomain
:Pid: 4042
:Uuid: b9ad0c86-28a4-46a6-8cc4-69b438de65d0
:Logger: ATSServer
:Payload: col: 2
ts: 1426695196580000000
col: 2
ts: 1426695196680000000
col: 2
ts: 1426695196780000000
col: 2
ts: 1426695196880000000
col: 2
ts: 1426695196980000000
col: 2
ts: 1426695197080000000
col: 2
ts: 1426695197180000000
col: 2
ts: 1426695197280000000
col: 2
ts: 1426695197390000128
col: 2
ts: 1426695197489999872
col: 2
ts: 1426695197590000128
col: 2
ts: 1426695197689999872
col: 2
ts: 1426695197790000128
col: 2
ts: 1426695197889999872
Entering function timer_event
:EnvVersion:
:Severity: 7
:Fields:
| name:"payload_type" type:string value:"txt" representation:"file-extension"
    | name:"payload_name" type:string value:"debug"

^C2015/03/18 16:13:42 Shutdown initiated.
2015/03/18 16:13:42 Input 'ats_access_logs': stopped
2015/03/18 16:13:42 Decoder 'ats_access_logs-ATS_transform_decoder-1': stopped
2015/03/18 16:13:42 Stop message sent to input 'ats_access_logs'
2015/03/18 16:13:42 Waiting for decoders shutdown
2015/03/18 16:13:42 Decoders shutdown complete
2015/03/18 16:13:42 Stop message sent to output 'debug'
2015/03/18 16:13:42 Plugin 'debug': stopped
2015/03/18 16:13:42 Stop message sent to output 'LogOutput'
2015/03/18 16:13:42 Plugin 'LogOutput': stopped
2015/03/18 16:13:42 Stop message sent to output 'DashboardOutput'
2015/03/18 16:13:42 Plugin 'DashboardOutput': stopped
2015/03/18 16:13:42 Shutdown complete.



Here is a copy of the function I'm using (modified from http_status.lua):

function timer_event(ns)
   table.insert(dbg, string.format("Entering function timer_event"))

   inject_payload ("txt", "debug", table.concat(dbg, "\n"))

   inject_payload("cbuf", title, status)


   table.insert(dbg, "Exiting function timer_event")
   inject_payload ("txt", "debug", table.concat(dbg, "\n"))
end


The status part is exactly the same from http_status.lua.

Did the cbuf change recently? I'm running heka 0.10.0.

Thanks,
Hank
_______________________________________________
Heka mailing list
[email protected]
https://mail.mozilla.org/listinfo/heka

Reply via email to