@ditjenpajakri/elasticsearch-logging 2.2.1 → 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.
Files changed (4) hide show
  1. package/lib.js +7 -1
  2. package/package.json +1 -1
  3. package/apm.env +0 -6
  4. 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ditjenpajakri/elasticsearch-logging",
3
- "version": "2.2.1",
3
+ "version": "2.4.0",
4
4
  "description": "Elasticsearch ",
5
5
  "main": "lib.js",
6
6
  "bin": {
package/apm.env DELETED
@@ -1,6 +0,0 @@
1
- LOG_ES_HOST=https://10.244.66.34:9200
2
- LOG_ES_PASS=jkljkl2020
3
- LOG_ES_VAR_A_AA=aaa
4
- LOG_ES_VAR_A_BB=bbb
5
- LOG_ES_VAR_B=ccc
6
- LOG_ES_INDEX=test-a-%{DATE}
package/test DELETED
@@ -1 +0,0 @@
1
- {"a": "1234"}