Skip to content
Graham Gilbert edited this page Nov 5, 2016 · 3 revisions

Basic Search

Sal has two methods of search - it has a basic search that will search across basic machine data - serial number, hostname, current user, etc. This is performed by typing into the search box on most pages.

Advanced Search

Sal features an advanced search capability, with support for complex chaining. These searches can also be saved for use by other members of your team.

When you choose to start a new search, you are presented with the following screen: your first search group is created for you, and you should head over to add your first search row.

Search rows are the basic unit of search in Sal - it is here you choose which field to search on, whether you want to find values greater than, less than, etc. If your search group contains more than one row, you will be also asked if the row should be and-ed or or-ed against the previous search row's results.

Search groups contain search rows - the groups can also be and-ed or or-ed against the result of the previous search group, if you have more than one.

A note for users with a manual installation (non-docker)

You will need to configure a scheduled job (cron is ideal) that runs the following script (assuming you have installed to /usr/local/sal_install):

#!/bin/bash

cd /usr/local/sal_install/sal
export PYTHONPATH=/usr/local/sal_install/sal:$PYTHONPATH
export DJANGO_SETTINGS_MODULE='sal.settings'

/usr/local/sal_install/sal_env/bin/python manage.py search_maintenance

This script does two things:

  • It cleans up old searches that haven't been saved.
  • It builds the dropdown menus for the fields to search on (facts, conditions etc)
Clone this wiki locally