Search a Repository

To search a repository that contains data you use the Search interface and write a query that filters, formats and aggregates the information that you want.

  1. Go to your LogScale instance in a web browser and click on the Repositories and views tab: you'll get a list of all the available repositories.

  2. Select the name of the repository you want to search. You will be presented with the Search interface.

  3. Do some simple searches in the input-box near the top left, also known as Query Editor or Search Box. See Do a simple search for explanations and examples.

  4. Create a widget based on the search you've just typed. See Create a Widget for explanations and examples.

Repository Search Page

Figure 5. Repository Search Page

Do a simple search

As an example, we want to monitor which web pages were not found by users on your server — they could be caused by broken internal links or something else you can fix easily — by examining web server log entries that are being received in the repository. So let's ask LogScale to search for the status code, 404 "Page Not Found" and see if the repository in LogScale shows those events.

  1. Type this search in the Query Editor space, the input-box near the top left:

    status = "404"

    (status codes can be in the status field, might also be in statuscode, status_code, etc.)

  2. Hit Enter or click on the button labeled Run: LogScale will retrieve all entries that match.

  3. Click on one of those entries, your screen will look something like the screenshot in Figure 6, “Error Code Search”.

    >Error Code Search

    Figure 6. Error Code Search

Notice the details that LogScale has parsed.

Check out our Search & Queries Tutorial for further guidelines on how to play with the Search page.

The full documentation page describing all LogScale searching functionalities is Searching Data.