Parse a raw Common Event Format (CEF) log message and show it in a tabular view using Vue.js.
Performs the following validations:
- User-defined extension name format
- String length
- Integer value range
- Long value range
- MAC Address format
- IPv4 and IPv6 format
Try it online at https://klasen.github.io/vue-cef-viewer/.
Field | Value | Comment |
---|---|---|
Input | ||
Raw |
Sep 19 08:26:10 host CEF:0|security|threatmanager|1.0|100|Detected a =\\\||10|src=10.0.0.1 shost=10.0.0.1 msg=Detected a \=\\|.\n No action needed dmac=00-0D-60-AF-1B-61 cs2=WIFI cs2Label=SSID art=1 threatAttackID=T1132 |
|
CEF Header | ||
Version |
0 |
|
DeviceVendor |
security |
|
DeviceProduct |
threatmanager |
|
DeviceVersion |
1.0 |
|
SignatureID |
100 |
|
Name |
Detected a =\| |
|
Severity |
10 |
|
CEF Extensions | ||
art |
1 |
|
cs2 |
WIFI |
|
cs2Label |
SSID |
|
dmac |
00-0D-60-AF-1B-61 |
|
msg |
Detected a =\|. No action needed |
|
shost |
10.0.0.1 |
|
src |
10.0.0.1 |
|
threatAttackID |
T1132 |
|
CEF Extensions by Label | ||
SSID |
WIFI |
npm install
Scrape CEF implementation standard and save producer and consumer extension dictionaries as JSON and CSV.
node ./docs/scrape.js > ./docs/fixes.txt
Generate a html side by side comparison of the CSV files for both documents using diff2html-cli.
On the spec-vs-devguide
branch:
- Scrape metadata
- Commit
/docs/*.csv
- Copy
docs/extensions-dictionary-flexconn_devguide-for-comparison.csv
todocs/extensions-dictionary-for-comparison.csv
- Create diff
node ./docs/scrape.js > ./docs/fixes.txt
git commit -m "Update scraped metadata" docs/*.html docs/*.csv docs/fixes.txt src/components/extension-dictionary.json
cp ./docs/extension-dictionary-flexconn_devguide-for-comparison.csv ./docs/extension-dictionary-for-comparison.csv
diff2html --style side --title "CEF Implementation Standard vs. Flexconn Devguide" --matchWordsThreshold 0.1 --fileContentToggle false --file docs/cef-implementation-standard_vs_flexconn-devguide.html
npm run dev
npm run build
# initial
git subtree push --prefix dist origin gh-pages
# on updates
npm run deploy