tools.parse.0.1.7.source-code.defaultRules.yaml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of parse Show documentation
Show all versions of parse Show documentation
Use regex patterns and rules to build json from text files
---
name: flamegraphFile
path: ".*flamegraph.*.svg?"
nest: files.flamegraph
asPath: |
(path)=>({name: path.substring(path.lastIndexOf("/")+1) })
---
name: jfrFile
path: ".*.jfr?"
nest: files.jfr
asPath: |
(path)=>({name: path.substring(path.lastIndexOf("/")+1) })
---
name: all.json
path: ".*all.json?"
nest: hyperfoil.stats
asJson: ''
---
name: printGc
path: ".*?run/(?[^\\./]+)\\.[^/]+/.*?\\.gclog?"
headerLines: 1
findHeader: "JRE (1."
nest: "${{serverName}}.gclog"
asText: PrintGcFactory
---
name: jep271
path: ".*?run/(?[^\\./]+)\\.[^/]+/.*?\\.gclog?"
headerLines: 1
avoidHeader: "JRE (1."
nest: "${{serverName}}.gclog"
asText: Jep271Factory
---
name: run.json
path: run.json
nest: qdup
asJson: |
(json) => {
const { latches, state, timestamps } = json;
const rtrn = {latches, state, timestamps};
return rtrn
}
---
name: run.xml
path: run.xml
nest: faban.run
asXml: ""
---
name: dstat
path: ".*?run/(?[^\\./]+).+?/dstat\\.log?"
nest: "${{serverName}}.dstat"
asText: DstatFactory
---
name: vmstat
path: ".*?run/(?[^\\./]+).+?/vmstat\\.log?"
nest: "${{serverName}}.vmstat"
asText: VmstatFactory
---
name: wrk
path: "^(.+)\\/(?([^/]+))\\.wrk$"
nest: "wrk.${{filename}}"
asText: WrkFactory
---
name: detail.xan
path: ".*?/detail.xan$"
nest: xan.detail
asText: XanFactory
---
name: host.proc-stats
path: ".*?/(?[^/\\.]+)[^/]*/proc-stats\\.log$"
nest: "${{hostName}}.procStat.host"
asText:
- name: timestamp
pattern: "^(?\\d+)$"
eat: Line
rules: [ PreClose ]
children:
- name: cpu
pattern: "\
^\
(?cpu\\d*)\\s+\
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+)\
$"
eat: Line
nest: cpu
merge: AsEntry
- name: intr
pattern: "^intr (?\\d+)[\\s\\d]+$"
eat: Line
- name: ctxt
pattern: "^ctxt (?\\d+)$"
eat: Line
- name: btime
pattern: "^btime (?\\d+)$"
eat: Line
- name: processes
pattern: "^processes (?\\d+)$"
eat: Line
- name: procs_running
pattern: "^procs_running (?\\d+)$"
eat: Line
- name: procs_blocked
pattern: "^procs_blocked (?\\d+)$"
eat: Line
- name: softirq
pattern: "^softirq (?\\d+)[\\s\\d+]$"
eat: Line
---
name: pidstat
path: ".*?/(?[^/\\.]+)[^/]*/[^/]*pidstat[^/]*"
nest: "${{hostName}}.pidstat"
asText:
- name: ignore
pattern: "\\|__"
eat: Match
children:
- name: child
pattern: "\
\\s*\
(?\\d+)\\s+\
(?\\d+)\\s+\
(?\\d+)\\s+\
(?\\d+)\\s+\
(?\\d+\\.\\d{2})\\s+\
(?\\d+\\.\\d{2})\\s+\
(?\\d+\\.\\d{2})\\s+\
(?\\d+\\.\\d{2})\\s+\
(?\\d+)\\s+\
(?\\d+\\.\\d{2})\\s+\
(?\\d+\\.\\d{2})\\s+\
(?\\d+)\\s+\
(?\\d+)\\s+\
(?\\d+\\.\\d{2})\\s+\
(?\\S+)\
.*"
range: EntireLine
nest: children
merge: AsEntry
- name: header
pattern: "^#.*?"
rules: [ PreClose ]
- name: row
pattern: "\
\\s*\
(?\\d+)\\s+\
(?\\d+)\\s+\
(?\\d+)\\s+\
(?\\d+)\\s+\
(?\\d+\\.\\d{2})\\s+\
(?\\d+\\.\\d{2})\\s+\
(?\\d+\\.\\d{2})\\s+\
(?\\d+\\.\\d{2})\\s+\
(?\\d+)\\s+\
(?\\d+\\.\\d{2})\\s+\
(?\\d+\\.\\d{2})\\s+\
(?\\d+)\\s+\
(?\\d+)\\s+\
(?\\d+\\.\\d{2})\\s+\
(?\\S+)\
.*"
rules: [ PreClose ]
---
name: name.proc-stats
path: ".*?/(?[^/\\.]+)[^/]*/proc-stats\\.(?\\w+)\\.log$"
nest: "${{hostName}}.procStat.${{name}}"
asText:
- name: timestamp
pattern: "^(?\\d+)$"
rules: [ PreClose ]
eat: Line
- name: pidline
pattern: "\
^(?\\d+) \
(?\\([^\\)]+\\)) \
(?\\S) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?-?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
0 \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
0 \
0 \
(?-?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
(?\\d+) \
\\d+ \
\\d+ \
\\d+ \
\\d+ \
\\d+ \
\\d+ \
\\d+ \
\\d+\
$"
eat: Line
---
name: VmHWM
path: ".*?/run/(?[^\\./]+).*?/VmHWM.log"
nest: "${{serverName}}.vmhwm"
asText:
- name: vmhwm
pattern: "(?\\d+),(?\\d+)"
rules: [ PreClose ]
---
name: spectre.log
path: ".*?/run/(?[^\\./]+).*?/spectre\\.log$"
nest: "${{serverName}}.sys"
asText:
- name: ibpb
pattern: "/sys/kernel/debug/x86/ibpb_enabled:(?\\d)"
- name: ibrs
pattern: "/sys/kernel/debug/x86/ibrs_enabled:(?\\d)"
- name: pti
pattern: "/sys/kernel/debug/x86/pti_enabled:(?\\d)"
- name: retp
pattern: "/sys/kernel/debug/x86/retp_enabled:(?\\d)"
- name: microcode
pattern: "microcode\\s+: (?0x\\w+)"
---
name: faban log.xml
path: .*?/log.xml$
nest: faban.log
asXml:
- path: $.log.record[0].millis['text()']
nest: timestamps.runStart
- path: $.log.record[?(@.message['text()'] == 'Ramp up started')].millis['text()']
nest: timestamps.rampUp
- path: $.log.record[?(@.message['text()'] == 'Ramp up completed')].millis['text()']
nest: timestamps.steadyState
- path: $.log.record[?(@.message['text()'] == 'Steady state completed')].millis['text()']
nest: timestamps.rampDown
- path: $.log.record[?(@.message['text()'] == 'Ramp down completed')].millis['text()']
nest: timestamps.runStop
- path: $.log.record[-1].millis['text()']
nest: timestamps.lastLog
- path: $.log.record[?(@.class['text()'] == 'com.sun.faban.driver.engine.MasterImpl$StatsWriter')]
nest: stats.insuranceDriver
children:
- path: $.millis['text()']
nest: timestamp
- path: $.message['text()']
exp:
- name: seconds
pattern: "(?\\d+\\.\\d{2})s - "
rules: [ PreClose ]
children:
- name: MfgDriver
pattern: "MfgDriver: CreateVehicleEJB/CreateVehicleWS \
CThru=\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3}) \
OThru=\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3}) \
CErr=\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3}) \
CResp=\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3}) \
OResp=\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3}) \
CSD=\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3}) \
OSD=\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3}) \
C90%Resp=\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3}) \
O90%Resp=\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3})"
- name: DealerDriver
pattern: "DealerDriver: Purchase/Manage/Browse CThru=\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3}) \
OThru=\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3}) \
CErr=\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3}) \
CResp=\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3}) \
OResp=\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3}) \
CSD=\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3}) \
OSD=\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3}) \
C90%Resp=\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3}) \
O90%Resp=\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3})/\
(?-|\\d+\\.\\d{3})"
nest: stat
---
name: java-version
path: ".*?/java-version.txt$"
nest: version
asContent: version
---
name: finalFlags
path: ".*?/container.log$"
nest: java.flags
asText:
- name: globalflags
pattern: "\\[Global flags\\]"
enables: [ "globalFlags" ]
- name: jvmFlag
pattern: "\\s*(?\\S+) (?\\S+)\\s{2,}= (?\\S*)\\s+\\{(?[^\\}]+)\\}"
requires: [ "globalFlags" ]
children:
- name: jdk11-source
pattern: " \\{(?
© 2015 - 2024 Weber Informatics LLC | Privacy Policy