UNPKG
slog
Version:
latest (0.1.0)
0.1.0
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Log parser with configurable column processors.
slog
/
processors
/
distribution.reducer.js
12 lines
(9 loc)
•
147 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
// var x;
input
=
input
|| {};
output
=
output
|| {};
for
(x
in
input
) {
output
[x] =
output
[x] ||
0
;
output
[x] +=
input
[x]; }
return
output
;