The Software Inventory functionality only lists th...
# fleet
e
The Software Inventory functionality only lists the host's sofware? Where I can see related CVE's? Do i need to set the databases_path variable? I'm using environmental variables, how can I set it that way?
t
you need to set the databases path, please follow the documentation to enable vulnerability checks: https://github.com/fleetdm/fleet/blob/main/docs/1-Using-Fleet/13-Vulnerability-Processing.md
e
I'm not setting my configuration via a conf file, I'm using environmental variables. Can I do it that way? (I'm using Docker)
t
not for vulnerabilities, only for software inventory
e
Ok, did you know where the config file is in the docker image? I don't have the config file mapped so I can't set that variable
t
you would apply it through fleetctl with
fleetctl apply -f yourconfig.yml
the config itself for the server lives in mysql
e
Ok, aplying
Copy code
docs/1-Using-Fleet/configuration-files/multi-file-configuration/organization-settings.yml
should be enough?
Mapping the path of the db to my host obviously
t
if you just want to set these two things, the config you need is this:
Copy code
---
apiVersion: v1
kind: config
spec:
  host_settings:
    enable_software_inventory: true
  vulnerability_settings:
    databases_path: /tmp/vulndbs
as mentioned in the docs. The other is a more complete example
e
I don't see the info being updated on the web
I doesn't seems to download any file on the folder specified
t
did you restart
fleet
? if so, please share the logs. It checks every hour, it takes an hour to do the first check
e
Yep, I've restart it. The check time is related to FLEET_OSQUERY_LABEL_UPDATE_INTERVAL or FLEET_OSQUERY_DETAIL_UPDATE_INTERVAL? Because I've changed that time
t
no, the check time is fixed at 1hr
e
Ok, I will check again after 1 hour and return if I see any issue. Thanks
Quick question, how I should see the cve info? Along with the sofware inventory table?
t
correct, you'll see it above the software and with a mark next to each app that's detected
ty 1
e
Hello again, I've see that a bunch of files were downloaded on the folder but the software inventory table remains the same
t
what does "the same" mean? empty?
e
Sorry, I meant no extra info, just the software name and version, still don't seeing any CVE related.
t
the cve data is stored in software_cve, the cpe data is stored in software_cve. You would see any CVE data when you list hosts either through fleetctl or through the web
e
Both tables are empty. I don't see any CVE data when I'm listing the hosts or viewing the Host info
t
could you share the logs for fleet?
e
What kind of logs? (result.log or status.log) There are many logs of my private hosts and queries (packs)
t
the logs of the fleet server itself
e
Sorry, there's a clean way to do it? I have my Docker container but it's overflooding with logs since it logs almost everything. Any kind of log or message in particular?
t
anything that contains
component=crons cron=vulnerabilities
e
Ok, i'll look into it. Thanks
Hello, checking again after few days and no hosts are being tagged with vulnerabilities. I'm not seeing any logs related to that.
t
hi Esteban, could you share your fleet server logs?
e
I was filtering by keyword "vuln" and no found no logs. I can't share all my logs since there's private information.
t
you should have seen at least 1 log that matches that, no matter whether you configured right or wrong, or it failed in unexpected ways
e
Mmm... There's a log file for that? My container is flooding the terminal with logs so it's kind of difficult to track specific logs. I've got result.log and status.log file logs.
t
fleet serve logs to stderr, result and status logs are for osquery
can you restart fleet? you should see some logs at the very beginning of the process running, that will tell us if it's properly configured or not
otherwise you could pipe the logs to a file