Darshal Shah
09/18/2023, 5:58 PMDherder
09/18/2023, 7:22 PMhostIdentifier instead?Darshal Shah
09/18/2023, 8:29 PMDarshal Shah
09/18/2023, 8:29 PMDarshal Shah
09/18/2023, 8:34 PMIn fact - it's worse than that. I was only seeing that on retrieval of "DNS Information" aka DNS resolvers
those were not present in all retrieved data
uuid portion of the incoming logs never changedDherder
09/19/2023, 12:19 AM{
"action": "snapshot",
"snapshot": [
{
"remote_address": "0.0.0.0",
"remote_port": "0",
"cmdline": "/usr/sbin/syslogd"
}
],
"name": "xxxxxxx",
"hostIdentifier": "xxxxxxx",
"calendarTime": "xxx xxx x xx:xx:xx xxxx UTC",
"unixTime": "xxxxxxxxx",
"epoch": "xxxxxxxxx",
"counter": "x",
"numerics": "x"
}Darshal Shah
09/19/2023, 3:30 PMDherder
09/19/2023, 8:27 PM- SELECT hostname AS hostname FROM system_info;
That will give you the hostname of the device and it will appear in splunk like (see screenshot).
The agent options look like this:
config:
options:
pack_delimiter: /
logger_tls_period: 10
distributed_plugin: tls
disable_distributed: false
logger_tls_endpoint: /api/osquery/log
distributed_interval: 10
distributed_tls_max_attempts: 3
decorators:
load:
- SELECT uuid AS host_uuid FROM system_info;
- SELECT hostname AS hostname FROM system_info;