Documentation ¶
Overview ¶
Package filter contains the app with methods to scan and retrieve logs from logGroup.
Index ¶
- func CheckDataBoundariesStr(startdate, enddate string) (bool, error)
- func CheckErr(e error, errString string)
- func CheckIfFileExistsHasContent(file string) (bool, error)
- func GetLengthOfLogsFilesGenerated(logsFileGenerated map[string][]string) (int, error)
- func ShortDateFromString(ds string) (time.Time, error)
- type App
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDataBoundariesStr ¶
CheckDataBoundariesStr checks is startdate <= enddate
func CheckIfFileExistsHasContent ¶ added in v1.1.1
CheckIfFileExistsHasContent check if a specific file exists and is not empty
func GetLengthOfLogsFilesGenerated ¶ added in v1.1.0
GetLengthOfLogsFilesGenerated calculates the number of files on which search results have been stored
Types ¶
type Options ¶
type Options struct { // Log group name on which all logStreams will be obtained and will apply the filtering LogGroup string // Aws profile to use for credentials in aws interaction AwsProfile string // Aws region to use for call operations to aws sdk AwsRegion string // Filter to apply on logStreams to retrieve eventLogs or not LogStreamFilter string // Position to apply log-stream-filter on logStreams of LogGroup (normally 1: logStreamPrefix, 2: service name, 3: service instance identifier) LogStreamFilterPosition int // Indicates if a specific term should be searched for in the logStreams SearchTermSearch bool // Term used to filter each of the messages found in the logStreams SearchTerm string // Path where to store the logs Path string // Filter only from a specific date StartDate string // Filter only until a specific date EndDate string }
Options contains all the app possible options.
Click to show internal directories.
Click to hide internal directories.