It seems like the osqueryi (at least earlier releases) is a separate binary and it's smaller than osqueryd. I'm thinking about including it in an app, and need the smaller version (30 mb vs 100 mb).
How to build just osqueryi ?
It seems like the osqueryi (at least earlier releases) is a separate binary and it's smaller than osqueryd. I'm thinking about including it in an app, and need the smaller version (30 mb vs 100 mb).
How to build just osqueryi ?
osqueryi
isn't separate, it's the same binary with a different name (or in some cases a symlink). You can also invoke the same mode by using the -S
argument. As in: osqueryd -S
As for size, ignoring the symlink case, they should be the same size. Osquery statically links it's dependancies in, so there's not a lot to trim out. If you're on linux, you might be able to strip the debugging symbols out.
If you're really tight on space, you could look at upx
for binary compression. I don't know anyone who uses it for osquery, but it ought work...