With the use of golang binding, is it possible to ...
# golang
j
With the use of golang binding, is it possible to specify a timeout for a query added thru config plugin?
e.g.
Copy code
{
  "options": {
    "schedule_default_interval": 60,  // Default interval for scheduled queries in seconds
    "schedule_splay_percent": 10      // Spread queries over a period to avoid spikes
  },
  "schedule": {
    "example_query": {
      "query": "SELECT pid, name, path FROM processes LIMIT 5;",
      "interval": 60,     // Interval to run the query (in seconds)
      "timeout": 10       // Maximum time allowed for query execution (in seconds)
    }
  }
}
s
It should support whatever osquery supports. And I don’t think osquery has a
timeout
value there.
j
Got it. Thanks