td-agent

external command fails td-agent

三世轮回 提交于 2020-04-07 10:34:16
问题 This bash command " etcdctl get system config/log/timestamp " returns time type either UTC or System. Now i want to use this to convert time to same format. How can i do that? I tried this but it failed td-agent running. <source> @type exec command etcdctl get system config/log/timestamp <parse> keys timeType </parse> </source> Now i want to use that timeType to convert my time from given log to that timeType {"host":"sp-1","level":"INFO","log":{"classname":"common.server.hacluster

external command fails td-agent

帅比萌擦擦* 提交于 2020-04-07 10:32:26
问题 This bash command " etcdctl get system config/log/timestamp " returns time type either UTC or System. Now i want to use this to convert time to same format. How can i do that? I tried this but it failed td-agent running. <source> @type exec command etcdctl get system config/log/timestamp <parse> keys timeType </parse> </source> Now i want to use that timeType to convert my time from given log to that timeType {"host":"sp-1","level":"INFO","log":{"classname":"common.server.hacluster

external command fails td-agent

好久不见. 提交于 2020-04-07 10:32:09
问题 This bash command " etcdctl get system config/log/timestamp " returns time type either UTC or System. Now i want to use this to convert time to same format. How can i do that? I tried this but it failed td-agent running. <source> @type exec command etcdctl get system config/log/timestamp <parse> keys timeType </parse> </source> Now i want to use that timeType to convert my time from given log to that timeType {"host":"sp-1","level":"INFO","log":{"classname":"common.server.hacluster