-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDCMSLinkConfig
35 lines (30 loc) · 1.55 KB
/
DCMSLinkConfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
[FILES]
LastLineFile = /home/luke/MassSpecLogParser/LastLineParsedDCMS.csv
;The location of the file that will keep track of the last time parsed of each file
Path = /home/luke/MassSpecLogParser/Example Logs to Parse/DCMSLink-Logfiles/
;The file or folder of files to be parsed. If it ends with a / it will parse the folder
FileExtension = .log
;Optional: Only parse files with this extension
[PARSER]
;02:15:39,050 SetMonitorTimeToZero() - call ignored!
Pattern = (?P<time>[0-2][0-9]:[0-6][0-9]:[0-6][0-9],[0-9][0-9][0-9])\t(?P<message>[\w\t .!:>'.,()\\-]*)
;The pattern to parse files with. Name all captures. Uses the re python rules for regular expressions.
;https://docs.python.org/3/library/re.html
FieldNames = time:time,message:field
;The name of the fields and the type, separated by a colon
TimeStampPattern = %%Y-%%m-%%d%%H:%%M:%%S,%%f
;Optional: The pattern to parse timestamps with. Uses the datetime python rules for timestamp parsing
;https://docs.python.org/3/library/datetime.html
;Percent signs must be escaped with an additional percent sign e.g. %%m
;If time and date are separate in your file, timestamp pattern will be your time pattern followed by your date pattern.
Timezone: US/Central
;Timezone, use "local" to use the machine's timezone. You can specify any other timezone from the pytz list.
;https://stackoverflow.com/questions/13866926/is-there-a-list-of-pytz-timezones
[FILENAME_PARSE]
Pattern = (?P<date>[0-9][0-9][0-9][0-9]\-[0-1][0-9]\-[0-2][0-9])
FieldNames = date:date
[INFLUXDB]
Host = localhost
Port = 8086
Database = DCMS
Measurement = logs