I am in the middle of the provisioning though, I paste it anyway:
root@bootstrap:~# cat /etc/send2syslog.conf
{
"watchlist": [
{"servers": [ {"host": "146.118.52.2"} ], "watchfiles": [ {"tag": "bootstrap/kern.log", "files": ["/var/log/kern.log"]}, {"tag": "bootstrap/udev", "files": ["/var/log/udev"]}, {"tag": "bootstrap/dmesg", "files": ["/var/log/dmesg"]}, {"tag": "bootstrap/secure", "files": ["/var/log/secure"]}, {"tag": "bootstrap/messages", "files": ["/var/log/messages"]}, {"tag": "bootstrap/fuel-agent", "files":
["/var/log/fuel-agent.log"]}, {"tag": "bootstrap/syslog", "files": ["/var/log/syslog"]}, {"tag": "bootstrap/auth", "files": ["/var/log/auth.log"]}, {"tag": "bootstrap/mcollective", "log_type": "ruby", "files": ["/var/log/mcollective.log"]}, {"tag": "bootstrap/agent", "log_type": "ruby", "files": ["/var/log/nailgun-agent.log"]}, {"tag": "bootstrap/netprobe_sender", "log_type": "netprobe", "files": ["/var/log/netprobe_sender.log"]}, {"tag": "bootstrap/netprobe_listener", "log_type": "netprobe", "files": ["/var/log/netprobe_listener.log"]}
]
}
]
}
root@bootstrap:~#
root@bootstrap:~# bash -x /etc/send2syslog.conf
+ watchlist: '['
/etc/send2syslog.conf: line 2: watchlist:: command not found
+ '{servers:' '[' '{host:' '146.118.52.2}' '],'
/etc/send2syslog.conf: line 3: {servers:: command not found
+ watchfiles: '['
/etc/send2syslog.conf: line 4: watchfiles:: command not found
+ '{tag:' bootstrap/kern.log, files: '[/var/log/kern.log]},'
/etc/send2syslog.conf: line 5: {tag:: command not found
+ '{tag:' bootstrap/udev, files: '[/var/log/udev]},'
/etc/send2syslog.conf: line 6: {tag:: command not found
+ '{tag:' bootstrap/dmesg, files: '[/var/log/dmesg]},'
/etc/send2syslog.conf: line 7: {tag:: command not found
+ '{tag:' bootstrap/secure, files: '[/var/log/secure]},'
/etc/send2syslog.conf: line 8: {tag:: command not found
+ '{tag:' bootstrap/messages, files: '[/var/log/messages]},'
/etc/send2syslog.conf: line 9: {tag:: command not found
+ '{tag:' bootstrap/fuel-agent, files: '[/var/log/fuel-agent.log]},'
/etc/send2syslog.conf: line 10: {tag:: command not found
+ '{tag:' bootstrap/syslog, files: '[/var/log/syslog]},'
/etc/send2syslog.conf: line 11: {tag:: command not found
+ '{tag:' bootstrap/auth, files: '[/var/log/auth.log]},'
/etc/send2syslog.conf: line 12: {tag:: command not found
+ '{tag:' bootstrap/mcollective, log_type: ruby,
/etc/send2syslog.conf: line 13: {tag:: command not found
+ files: '[/var/log/mcollective.log]},'
/etc/send2syslog.conf: line 14: files:: command not found
+ '{tag:' bootstrap/agent, log_type: ruby,
/etc/send2syslog.conf: line 15: {tag:: command not found
+ files: '[/var/log/nailgun-agent.log]},'
/etc/send2syslog.conf: line 16: files:: command not found
+ '{tag:' bootstrap/netprobe_sender, log_type: netprobe,
/etc/send2syslog.conf: line 17: {tag:: command not found
+ files: '[/var/log/netprobe_sender.log]},'
/etc/send2syslog.conf: line 18: files:: command not found
+ '{tag:' bootstrap/netprobe_listener, log_type: netprobe,
/etc/send2syslog.conf: line 19: {tag:: command not found
+ files: '[/var/log/netprobe_listener.log]}'
/etc/send2syslog.conf: line 20: files:: command not found
+ ']'
/etc/send2syslog.conf: line 21: ]: command not found
+ ']'
/etc/send2syslog.conf: line 23: ]: command not found
/etc/send2syslog.conf: line 24: syntax error near unexpected token `}'
/etc/send2syslog.conf: line 24: `}'
On 20/01/17 15:54, Georgy Kibardin wrote:
> bash -x /etc/send2syslog.conf
It did,
I am in the middle of the provisioning though, I paste it anyway:
root@bootstrap:~# cat /etc/send2syslo g.conf
"watchfiles" : [
{ "tag": "bootstrap/ kern.log" , "files": ["/var/ log/kern. log"]},
{ "tag": "bootstrap/udev", "files": ["/var/log/udev"]},
{ "tag": "bootstrap/dmesg", "files": ["/var/ log/dmesg" ]},
{ "tag": "bootstrap/secure", "files": ["/var/ log/secure" ]},
{ "tag": "bootstrap/ messages" , "files": ["/var/ log/messages" ]},
{ "tag": "bootstrap/ fuel-agent" , "files": log/fuel- agent.log" ]},
{ "tag": "bootstrap/syslog", "files": ["/var/ log/syslog" ]},
{ "tag": "bootstrap/auth", "files": ["/var/ log/auth. log"]},
{ "tag": "bootstrap/ mcollective" , "log_type": "ruby",
"files" : ["/var/ log/mcollective .log"]} ,
{ "tag": "bootstrap/agent", "log_type": "ruby",
"files" : ["/var/ log/nailgun- agent.log" ]},
{ "tag": "bootstrap/ netprobe_ sender" , "log_type": "netprobe",
"files" : ["/var/ log/netprobe_ sender. log"]},
{ "tag": "bootstrap/ netprobe_ listener" , "log_type": "netprobe",
"files" : ["/var/ log/netprobe_ listener. log"]} g.conf g.conf: line 2: watchlist:: command not found g.conf: line 3: {servers:: command not found g.conf: line 4: watchfiles:: command not found log/kern. log]},' g.conf: line 5: {tag:: command not found g.conf: line 6: {tag:: command not found log/dmesg] },' g.conf: line 7: {tag:: command not found log/secure] },' g.conf: line 8: {tag:: command not found log/messages] },' g.conf: line 9: {tag:: command not found fuel-agent, files: '[/var/ log/fuel- agent.log] },' g.conf: line 10: {tag:: command not found log/syslog] },' g.conf: line 11: {tag:: command not found log/auth. log]},' g.conf: line 12: {tag:: command not found mcollective, log_type: ruby, g.conf: line 13: {tag:: command not found log/mcollective .log]}, ' g.conf: line 14: files:: command not found g.conf: line 15: {tag:: command not found log/nailgun- agent.log] },' g.conf: line 16: files:: command not found netprobe_ sender, log_type: netprobe, g.conf: line 17: {tag:: command not found log/netprobe_ sender. log]},' g.conf: line 18: files:: command not found netprobe_ listener, log_type: netprobe, g.conf: line 19: {tag:: command not found log/netprobe_ listener. log]}' g.conf: line 20: files:: command not found g.conf: line 21: ]: command not found g.conf: line 23: ]: command not found g.conf: line 24: syntax error near unexpected token `}' g.conf: line 24: `}'
{
"watchlist": [
{"servers": [ {"host": "146.118.52.2"} ],
["/var/
]
}
]
}
root@bootstrap:~#
root@bootstrap:~# bash -x /etc/send2syslo
+ watchlist: '['
/etc/send2syslo
+ '{servers:' '[' '{host:' '146.118.52.2}' '],'
/etc/send2syslo
+ watchfiles: '['
/etc/send2syslo
+ '{tag:' bootstrap/kern.log, files: '[/var/
/etc/send2syslo
+ '{tag:' bootstrap/udev, files: '[/var/log/udev]},'
/etc/send2syslo
+ '{tag:' bootstrap/dmesg, files: '[/var/
/etc/send2syslo
+ '{tag:' bootstrap/secure, files: '[/var/
/etc/send2syslo
+ '{tag:' bootstrap/messages, files: '[/var/
/etc/send2syslo
+ '{tag:' bootstrap/
/etc/send2syslo
+ '{tag:' bootstrap/syslog, files: '[/var/
/etc/send2syslo
+ '{tag:' bootstrap/auth, files: '[/var/
/etc/send2syslo
+ '{tag:' bootstrap/
/etc/send2syslo
+ files: '[/var/
/etc/send2syslo
+ '{tag:' bootstrap/agent, log_type: ruby,
/etc/send2syslo
+ files: '[/var/
/etc/send2syslo
+ '{tag:' bootstrap/
/etc/send2syslo
+ files: '[/var/
/etc/send2syslo
+ '{tag:' bootstrap/
/etc/send2syslo
+ files: '[/var/
/etc/send2syslo
+ ']'
/etc/send2syslo
+ ']'
/etc/send2syslo
/etc/send2syslo
/etc/send2syslo
On 20/01/17 15:54, Georgy Kibardin wrote: g.conf
> bash -x /etc/send2syslo