Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

AgentManager SETFILES Action

Sam Betts edited this page Mar 17, 2014 · 1 revision

Configure a specific agent to watch some files.

Request

{
  'agents': ["6db37732-e8e4-45fe-9315-86255fcadd77", "6db37732-e8e4-45fe-9315-86251asb2213a"],
  'files' : [
    { 'path' : '/var/log/syslog', 'tags' : 'syslog,dhcp' }, 
    { 'path' : '/var/log/apiary/honeycomb.log', 'tags' : 'recursion' }
  ]
}

Response (only if called from RPC)

{
  'responses' : [ 
    "DONE",
    "Error: Path not found"
  ]
}