Hi,
I have to streams that I am trying to join that look like below:
clusterStat stream:
ts=2018-01-25T15:51:00.000-05:00 lvl=info msg=point service=kapacitor task_master=main task=cluster_test node=mean17 prefix= name=stats db= rp= group=cluster=kapacitor dimension_0=cluster tag_cluster=kapacitor field_emitted=0 time=2018-01-25T20:51:00Z
data stream:
ts=2018-01-25T15:51:00.895-05:00 lvl=info msg=point service=kapacitor task_master=main task=cluster_test node=mean17 prefix= name=cpu db=system rp=autogen group=cluster=kapacitor dimension_0=cluster tag_region=dc1 tag_cpu=cpu-total tag_dpcolor=green tag_host=192.168.199.45 tag_metric_db=system tag_cluster=kapacitor tag_pod=gateway field_usage_guest=0 field_usage_iowait=0 field_usage_guest_nice=0 field_usage_idle=96.84308263010566 field_usage_steal=0 field_usage_nice=0 field_usage_softirq=0.023212627666907792 field_usage_irq=0 field_usage_user=1.7177344472920637 field_usage_system=1.41597028761804 time=2018-01-25T20:51:01Z
Join statement
data
|join(clusterStat)
.as(‘cpu’, ‘status’)
.on(‘cluster’)
.tolerance(60s)
.fill(0)
|log()
But join doesnt output anything. Any suggestions please?
Thanks