diff --git a/log-elk-logger.html b/log-elk-logger.html
index 5c7aead..c84a4c4 100644
--- a/log-elk-logger.html
+++ b/log-elk-logger.html
@@ -12,7 +12,7 @@
password: { value: "" },
filename: { value: "log-elk.log", required: true },
maxsize: { value: 1, required: true, validate: function(v) { return v >= 1 } },
- maxfiles: { value: 10, required: true, validate: function(v) { return v >= 1 } },
+ maxfiles: { value: 1, required: true, validate: function(v) { return v >= 1 } },
logelk: { value: false },
logfile: { value: false },
logconsole: { value: false },
@@ -99,7 +99,7 @@
-
+
diff --git a/log-elk-logger.js b/log-elk-logger.js
index 8ee4923..050552b 100644
--- a/log-elk-logger.js
+++ b/log-elk-logger.js
@@ -50,8 +50,8 @@ module.exports = function (RED) {
var filename = config.filename;
if (filename) {
var maxFiles = 1;
- var filesize = 1073741824;
- if (config.maxsize >= 1) filesize = config.maxsize * 1073741824;
+ var filesize = 1048576;
+ if (config.maxsize >= 1) filesize = config.maxsize * 1048576;
if (config.maxFiles >= 1) maxfiles = config.maxFiles;
transports.push(new (winston.transports.File)({
diff --git a/package.json b/package.json
index 0a69fc8..9562d5f 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "node-red-contrib-log-elk",
- "version": "1.2.1",
+ "version": "1.2.2",
"description": "A Node-RED logging node with multiple outputs using the winston and winston-elasticsearch logging libraries",
"main": "log-elk.js",
"scripts": {