@ditjenpajakri/elasticsearch-logging 2.3.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib.js +7 -1
- package/package.json +1 -1
- package/test +0 -1
package/lib.js
CHANGED
|
@@ -98,7 +98,13 @@ function initializeBulkHandler(opts, client, splitter) {
|
|
|
98
98
|
return index.replace(
|
|
99
99
|
"%{DATE}",
|
|
100
100
|
time.substring ? time.substring(0, 10) : ""
|
|
101
|
-
)
|
|
101
|
+
)
|
|
102
|
+
.replace(
|
|
103
|
+
"%{MONTHLY}",
|
|
104
|
+
time.substring ? time.substring(0, 7) : ""
|
|
105
|
+
)
|
|
106
|
+
.replace("%{YYYY}", time.substring ? time.substring(0, 4) : "")
|
|
107
|
+
.replace("%{MM}", time.substring ? time.substring(5, 7) : "")
|
|
102
108
|
}
|
|
103
109
|
}
|
|
104
110
|
|
package/package.json
CHANGED
package/test
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"a": "1234"}
|