diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -136,7 +136,7 @@ SplunkStreamEvent.prototype.log = function (level, msg, meta, callback) {
                 name: meta.name,
                 stack: meta.stack
             };
-        } else if (meta.length) {
+        } else if (Object.keys(meta).length) {
             payload.message.meta = meta;
         }
     }
custom-event-formatter: Updating check for meta as we expecting object