https://github.com/osquery/osquery logo
Title
m

Matt

02/17/2020, 6:55 PM
Hello everyone. I'm new, so be patient with me haha. When I pass my flags file to the osqueryi command line tool, it seems that some of the variables I set in the file don't get set in osqueryi. I've checked the encoding on the flags file and it is UFT8, so that shouldn't be the issue. Also, I'm having to include the --allow_unsafe parameter on account of osqueryi not having proper permissions (I've looked at it and everything seems to be in order). Any help would be greatly appreciated!
c

CptOfEvilMinions

02/17/2020, 7:40 PM
Another to check might be the newline encoding, I think Windows uses CRLF
m

Matt

02/17/2020, 7:52 PM
It uses CRLF for newline encoding yes
f

farfella

02/18/2020, 1:50 AM
Is there anything in your flags file which isn't in the ASCII-127 range? There's a pull request (#6190) slated for v4.2.1 for cases where UTF-8 conversion isn't correctly being performed. It might be related to this, but it also might not, as I didn't check if flags file was being properly being read-in in UTF-8.
And looking at your screenshots, everything is in ASCII-127 😄 So problem is something else.