Ran into the following error, let me know if anyone knows how to fix it.
Error: "dial unix /var/osquery/sock/osquery.em: connect: connection refused"
I could see "/var/osquery/sock/osquery.em" was getting dropped frequently.
When /var/osquery/sock/osquery.db is dropped the error went away, not sure what was causing this issue. The size of /var/osquery/sock/osquery.db was 473MB at the time when issue occurred, if that is relevant.
Please help debug the issue. I have multiple machines failing for the same, hence need to find the root cause so that it doesn't happen again.