--- title: "Running Apache Solr script" slug: "running-apache-solr-script" tags: ["Install and Get Started", "IPS 10.1.10"] updated: 2026-09-23T09:35:02Z published: 2026-09-23T09:35:02Z canonical: "docs.trellix.com/running-apache-solr-script" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Running Apache Solr script When you run the Solr script, older alerts and other events for the required number of days are imported into Solr. You specify the required number of days when you run the script for Apache Solr. > [!NOTE] > Note > > The steps outlined below for running the Apache Solr scripts are applicable to Manager version 9.1.7.77 till 10.1.7.40 only. For more detailed information on synchronizing IPS alerts in the Solr Database, refer to [KB86158](https://support.trellix.com/s/article/KB86158). ## Task 1. Log in to the Manager shell. 2. Stop the Manager service using the manager stop command. 3. Stop the Apache Solr service using the solr stop command. 4. Execute the following command block to run the solrImport.sh script: ``` run solrImport.sh offline start days= ``` When you run the Solr script, older alerts and other events for the required number of days are imported into Solr. You specify the required number of days when you run the script for Apache Solr. For example, solrImport offline start days=25, imports 25 days of data. But assume there are 15 million alerts in the database. In that case, 5 million of the oldest alerts are deleted. 5. Wait for the batch file to complete and then start the Apache Solr service using the solr start command and the Manager service using the manager start command. > [!NOTE] > Note > > After you restart, once the Manager comes up, go to **Manager** → **** → **Maintenance** → **Database Pruning** → **Alert Pruning**. Set the Maximum Alerts to Store for Dashboard Data to maximum intended alert limit and save. The Manager uses MariaDB which has a pre-defined alert capacity of 30,000,000 alerts. In addition, the Manager uses an open-source search application called Solr, which stores alerts within a flat file. If the Manager server has 8 GB of RAM, it supports 3 million alerts in the Solr database. If the Manager server has 16 GB or more of RAM, it supports 10 million alerts in the Solr Database