Cmdlets for Splunk

Build 24.0.9060

MaxLogFileCount Parameter (Connect-Splunk Cmdlet)

A string specifying the maximum file count of log files.

Syntax

Connect-Splunk -MaxLogFileCount int

Data Type

int

Default Value

-1

Remarks

When the limit is hit, a new log is created in the same folder with the date and time appended to the end and the oldest log file will be deleted.

The minimum supported value is 2. A value of 0 or a negative value indicates no limit on the count.

Adjust the maximum size of the logfiles generated with MaxLogFileSize.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060