Support Center

Creating a Monthly Storage

Last Updated: May 12, 2016 11:57PM PDT
To automatically create a set of storages that will contain the log files corresponding to a certain month, you will need a task that creates and names a new storage every month.

To create this task:
  1. Create a new task and enter "Create Monthly Storage" as the name.
  2. On the Schedule page, enter a start time (i.e. 00:10:00). This will be the time that the task will run.
  3. Using the 'Recurrence dropdown box, select Monthly, then select Day 1 of the month(s) and then click the checkbox for each month.


     
  4. On the Authentication page, enter your authentication details and click OK
     
The task you just created is now set to run on the first day of every month. To create the storage you need to add an action to the new task.

To add the action:
  1. With the task selected, click Add Action and select Import logs into new storage. The Input wizard will be automatically launched.
  2. On the Storages page, enter %[MM-yyyy] Log Storage as the storage name and ensure that the 'Open new storage after it is created' checkbox is selected. Note: %[MM-yyyy] is the date modifier that will insert the current month and year i.e. running this task on the 1st of September 2008 will create a storage named 09-2008 Log Storage.
  3. On the Input Type page, select your input type.
  4. On the Loader Section page, select the format of your log files.
  5. On the Input Selection page, use the Add button and select Add Folder, then select the path of your log file folder/s. For each folder, include a file mask of %[yyyyMM]* then click OK to return to the wizard. Note: The file mask %[yyyyMM] will import the log files that have a file name beginning with the current year followed by the current month.
  6. On the Filters page click Add and select Relative date filter. Select 1 and Month from the 'show past' dropdown boxes. Click the 'Include current period' checkbox and then click OK.
  7. Repeat the process for each of the formats on the Filter page, then click OK.

Now that the setup of the task is complete, you can check the task runs as expected by clicking Run Task.

 

Importing Log Data

To automatically import your log files into the corresponding monthly storage, you will need a task that imports log files into an existing storage every day.

To create this task:
  1. Create a new task and enter "Daily Import of Logs" as the name.
  2. On the Schedule page, enter a start time (i.e. 01:00:00). This will be the time that the task will run.
  3. Using the 'Recurrence dropdown box, select Daily and then ensure that it is set to Every 1 day(s).


     
  4. On the Authentication page, enter your authentication details and click OK.
     
The task you just created is now set to run every day at 1:00am. To import the logs you need to add an action to the new task.

To add the action:
  1. With the task selected, click Add Action and select Import new hits to existing storage.
  2. Click the %[MM-yyyy] Log Storage radio button. Then click OK.
  3. Now click on the Monthly task and click Add Action and select Import new hits to existing storage.
  4. Click the Add button above the storages list and enter %[-1m, MM-yyyy] Log Storage, then click OK.
     
Note: Including the storage from the previous month will enable the task to update the previous days logs if it is the 1st day of the month.

Now that the setup of the task is complete, you can check the task runs as expected by clicking Run Task.

Contact Us

support@fastvue.co
http://assets3.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete