脚本执行数据
Last updated
enable: true
inputs:
- Type: input_command
User: test
ScriptType: shell
ScriptContent:
echo -e "test metric commond"
Environments:
- "DEBUG=true"
flushers:
- Type: flusher_stdout
OnlyStdout: true{
"content":"test metric commond",
"script_md5":"b3ebc535c2e6cead6e2e13b383907245",
"__time__":"1689677617"
}enable: true
inputs:
- Type: input_command
User: test
ScriptType: python2
ScriptContent: |
print("test input_command 0")
print("test input_command 1")
print("test input_command 2")
print("test input_command 3")
print("test input_command 4")
print("test input_command 5")
print("test input_command 6")
print("test input_command 7")
print("test input_command 8")
print("test input_command 9")
CmdPath: /usr/bin/python
Environments:
- "DEBUG=true"
TimeoutMilliseconds: 1005
flushers:
- Type: flusher_stdout
OnlyStdout: true{
"content":"test input_command 0\ntest input_command 1\ntest input_command 2\ntest input_command 3\ntest input_command 4\ntest input_command 5\ntest input_command 6\ntest input_command 7\ntest input_command 8\ntest input_command 9",
"script_md5":"5d049f5b2943d2d5e5737dddb065c39c",
"__time__":"1689677656"
}enable: true
inputs:
- Type: input_command
User: test
ScriptType: python2
ScriptContent: |
import os
print os.environ
CmdPath: /usr/bin/python
Environments:
- "DEBUG=true"
TimeoutMilliseconds: 1005
flushers:
- Type: flusher_stdout
OnlyStdout: true{
"content":"{'GOPATH': '/opt/go', 'GOROOT': '/usr/local/go', 'DEBUG': 'true', xxxxx(省略后面内容)}",
"script_md5":"1444286e16118f7d1bb778738a828273",
"__time__":"1689677681"
}