{"_id":"@ditjenpajakri/elasticsearch-logging","_rev":"10-46da1c1c08e41ac6582c861950ab7073","name":"@ditjenpajakri/elasticsearch-logging","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"@ditjenpajakri/elasticsearch-logging","version":"1.0.0","author":{"name":"nsrb"},"license":"MIT","_id":"@ditjenpajakri/elasticsearch-logging@1.0.0","maintainers":[{"name":"nsrb","email":"nasyarobby@gmail.com"}],"homepage":"https://github.com/ditjenpajakri/pino-elasticsearch-logging#readme","bugs":{"url":"https://github.com/ditjenpajakri/pino-elasticsearch-logging/issues"},"bin":{"log-to-es":"lib.js"},"dist":{"shasum":"d424941af521a2deda477a2a427d7fab052d296f","tarball":"https://registry.npmjs.org/@ditjenpajakri/elasticsearch-logging/-/elasticsearch-logging-1.0.0.tgz","fileCount":3,"integrity":"sha512-kO5tZuXdxIQ/HNfBTPO8DmlvYicqXVV6vmbQHNC7QPPeAyWur9oHihbRBdKVmrArWk9kDo/ZGVk2M+2yZMMm7A==","signatures":[{"sig":"MEUCIQC1F6Vd1U/iVkREMpcnVkIVIBAMC1BwdtEKP/Rk8qPFUwIgabTpeQ4gy5iMvpUMFPxTA4amYgSuzDdW2zTbEH6JZtU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5840},"main":"lib.js","gitHead":"7a48fba77aa7f8566bbaadf2874f52dbdd18fbaf","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"nsrb","email":"nasyarobby@gmail.com"},"repository":{"url":"git+https://github.com/ditjenpajakri/pino-elasticsearch-logging.git","type":"git"},"_npmVersion":"9.6.7","description":"Elasticsearch ","directories":{},"_nodeVersion":"18.17.0","dependencies":{"pump":"^3.0.0","split2":"^4.2.0","@elastic/elasticsearch":"^7.17.12"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/elasticsearch-logging_1.0.0_1693818605580_0.07282962811459615","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@ditjenpajakri/elasticsearch-logging","version":"1.1.0","author":{"name":"nsrb"},"license":"MIT","_id":"@ditjenpajakri/elasticsearch-logging@1.1.0","maintainers":[{"name":"nsrb","email":"nasyarobby@gmail.com"}],"homepage":"https://github.com/ditjenpajakri/pino-elasticsearch-logging#readme","bugs":{"url":"https://github.com/ditjenpajakri/pino-elasticsearch-logging/issues"},"bin":{"log-to-es":"lib.js"},"dist":{"shasum":"3cf9207156cc0667aced44a488a0fba73a34e9e9","tarball":"https://registry.npmjs.org/@ditjenpajakri/elasticsearch-logging/-/elasticsearch-logging-1.1.0.tgz","fileCount":3,"integrity":"sha512-Nl+S3E0ocwJLK+MNIwnXR6ykI2p+X6rlDm5r9uwmyHE6EgM838qCsrcAG/ViVmnckyDwjRMCEVIv6JdVy3jyEA==","signatures":[{"sig":"MEQCIFwpofflWXuNzCFxIWqIQWjAhbtcI8EgQ6nuycppl27JAiBUIWEQK1ufIK4HWdSuFTN6USNcaCBtia55FcgDRm9u1Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6633},"main":"lib.js","gitHead":"778aa4445096396be90208d59b1c462d4add9e0e","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"nsrb","email":"nasyarobby@gmail.com"},"repository":{"url":"git+https://github.com/ditjenpajakri/pino-elasticsearch-logging.git","type":"git"},"_npmVersion":"9.6.7","description":"Elasticsearch ","directories":{},"_nodeVersion":"18.17.0","dependencies":{"pump":"^3.0.0","split2":"^4.2.0","@elastic/elasticsearch":"^7.17.12"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/elasticsearch-logging_1.1.0_1693819564732_0.8280580567936484","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@ditjenpajakri/elasticsearch-logging","version":"2.0.0","author":{"name":"nsrb"},"license":"MIT","_id":"@ditjenpajakri/elasticsearch-logging@2.0.0","maintainers":[{"name":"nsrb","email":"nasyarobby@gmail.com"}],"homepage":"https://github.com/ditjenpajakri/pino-elasticsearch-logging#readme","bugs":{"url":"https://github.com/ditjenpajakri/pino-elasticsearch-logging/issues"},"bin":{"log-to-es":"lib.js"},"dist":{"shasum":"77f7dfc12befdcfe8c6fe9decc3a8cb163da49e1","tarball":"https://registry.npmjs.org/@ditjenpajakri/elasticsearch-logging/-/elasticsearch-logging-2.0.0.tgz","fileCount":3,"integrity":"sha512-KaPGZInCOQDECCqxVmjB1YHDOwyg8ZguR9XKTJx3FSmmT8vWoxovDKU7uRRRAJVBVDMWX+lLE5f0dbrEgWf3FQ==","signatures":[{"sig":"MEUCIHR66i9ECPQ5D2teo33tzUlr7iQs37YSG9OO2ALmoZb9AiEApF4LkG8NqM3r34jsMgNWr8Try2nB+gYUKIkOHXt8ah0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6713},"main":"lib.js","gitHead":"9a35f6bc6d1c4fbef011406d319ebd9adca58e12","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"nsrb","email":"nasyarobby@gmail.com"},"repository":{"url":"git+https://github.com/ditjenpajakri/pino-elasticsearch-logging.git","type":"git"},"_npmVersion":"8.19.2","description":"Elasticsearch ","directories":{},"_nodeVersion":"18.12.1","dependencies":{"pump":"^3.0.0","split2":"^4.2.0","@elastic/elasticsearch":"8"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/elasticsearch-logging_2.0.0_1717646226620_0.9599082300778303","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"@ditjenpajakri/elasticsearch-logging","version":"2.0.1","author":{"name":"nsrb"},"license":"MIT","_id":"@ditjenpajakri/elasticsearch-logging@2.0.1","maintainers":[{"name":"nsrb","email":"nasyarobby@gmail.com"}],"homepage":"https://github.com/ditjenpajakri/pino-elasticsearch-logging#readme","bugs":{"url":"https://github.com/ditjenpajakri/pino-elasticsearch-logging/issues"},"bin":{"log-to-es":"lib.js"},"dist":{"shasum":"5d772deb26a08bbee51db3f890cfe970c7c325d5","tarball":"https://registry.npmjs.org/@ditjenpajakri/elasticsearch-logging/-/elasticsearch-logging-2.0.1.tgz","fileCount":3,"integrity":"sha512-pjp/JMdP04kCKXt+7aAmS/+4vHJNGMVwsLFecjxNy+QRGyIJcfRAfhjs827XT0FKzR1gpC3o1bXaV/UUDzYM3g==","signatures":[{"sig":"MEUCIQDG+Th/eoR/R2DGmVBYi0e+k3E8hB/9hOaRjuIVCxgaFAIgde53QDNwm4Q2YXIoUgqjv631AyQxu7ENMnUno5KWaxU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6688},"main":"lib.js","gitHead":"9a35f6bc6d1c4fbef011406d319ebd9adca58e12","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"nsrb","email":"nasyarobby@gmail.com"},"repository":{"url":"git+https://github.com/ditjenpajakri/pino-elasticsearch-logging.git","type":"git"},"_npmVersion":"8.19.2","description":"Elasticsearch ","directories":{},"_nodeVersion":"18.12.1","dependencies":{"pump":"^3.0.0","split2":"^4.2.0","@elastic/elasticsearch":"8"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/elasticsearch-logging_2.0.1_1717735119840_0.15209253860332805","host":"s3://npm-registry-packages"}},"2.2.0":{"name":"@ditjenpajakri/elasticsearch-logging","version":"2.2.0","author":{"name":"nsrb"},"license":"MIT","_id":"@ditjenpajakri/elasticsearch-logging@2.2.0","maintainers":[{"name":"nsrb","email":"nasyarobby@gmail.com"}],"homepage":"https://github.com/ditjenpajakri/pino-elasticsearch-logging#readme","bugs":{"url":"https://github.com/ditjenpajakri/pino-elasticsearch-logging/issues"},"bin":{"log-to-es":"lib.js"},"dist":{"shasum":"21e3231f85bf6983980317ec4a1e55609b2a34df","tarball":"https://registry.npmjs.org/@ditjenpajakri/elasticsearch-logging/-/elasticsearch-logging-2.2.0.tgz","fileCount":5,"integrity":"sha512-9uRX6nWOjI2J80ZeK7nx+1te2yaI7Sa2qQDbWgmwDRy/EBDRaVtF+7zCi35/quDwF2xs6aaC6dtwhao6jikC5g==","signatures":[{"sig":"MEQCIBI3lqb955pZDIAH8X18t6s+906jLkUashTfuMmSeKvBAiAaA10Zin12INRnAdsHhyHZ8dCifIRZgDnGwCLNJyKE4g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8455},"main":"lib.js","gitHead":"50c43689c1240646996017209c5b0f5d4a6de454","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"nsrb","email":"nasyarobby@gmail.com"},"repository":{"url":"git+https://github.com/ditjenpajakri/pino-elasticsearch-logging.git","type":"git"},"_npmVersion":"10.5.0","description":"Elasticsearch ","directories":{},"_nodeVersion":"21.7.1","dependencies":{"pump":"^3.0.0","dotenv":"^16.4.5","split2":"^4.2.0","@elastic/elasticsearch":"8"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/elasticsearch-logging_2.2.0_1723196617903_0.939578463806686","host":"s3://npm-registry-packages"}},"2.2.1":{"name":"@ditjenpajakri/elasticsearch-logging","version":"2.2.1","author":{"name":"nsrb"},"license":"MIT","_id":"@ditjenpajakri/elasticsearch-logging@2.2.1","maintainers":[{"name":"nsrb","email":"nasyarobby@gmail.com"}],"homepage":"https://github.com/ditjenpajakri/pino-elasticsearch-logging#readme","bugs":{"url":"https://github.com/ditjenpajakri/pino-elasticsearch-logging/issues"},"bin":{"log-to-es":"lib.js"},"dist":{"shasum":"aa47eba3aab07fc75e6c29d3d17483245c97a8a3","tarball":"https://registry.npmjs.org/@ditjenpajakri/elasticsearch-logging/-/elasticsearch-logging-2.2.1.tgz","fileCount":5,"integrity":"sha512-of4wohjoeugPx97BPd89XtUWg7A6i7zu4KQnowmlqL76Fq1zwHOuxj9wa8R3xtT16jbuetvxjqyzTCy1zTwz2Q==","signatures":[{"sig":"MEQCIGeC/t/hv6/4JBOQjwTw9GYDiNnFo7qZPfaAMjyGKye2AiB+HMLOpXTC/IHl1swCdi9G1qUT/65VT+DTx87pwqncXQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8026},"main":"lib.js","gitHead":"6818cc7570a07305d24db999be003addcfdc68b5","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"nsrb","email":"nasyarobby@gmail.com"},"repository":{"url":"git+https://github.com/ditjenpajakri/pino-elasticsearch-logging.git","type":"git"},"_npmVersion":"10.5.0","description":"Elasticsearch ","directories":{},"_nodeVersion":"21.7.1","dependencies":{"pump":"^3.0.0","dotenv":"^16.4.5","split2":"^4.2.0","@elastic/elasticsearch":"8"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/elasticsearch-logging_2.2.1_1723204561686_0.19130010710124634","host":"s3://npm-registry-packages"}},"2.3.0":{"name":"@ditjenpajakri/elasticsearch-logging","version":"2.3.0","author":{"name":"nsrb"},"license":"MIT","_id":"@ditjenpajakri/elasticsearch-logging@2.3.0","maintainers":[{"name":"nsrb","email":"nasyarobby@gmail.com"}],"homepage":"https://github.com/ditjenpajakri/pino-elasticsearch-logging#readme","bugs":{"url":"https://github.com/ditjenpajakri/pino-elasticsearch-logging/issues"},"bin":{"log-to-es":"lib.js"},"dist":{"shasum":"3cb78baf1b3f4a8a6bca683fcd142e443cf7a70c","tarball":"https://registry.npmjs.org/@ditjenpajakri/elasticsearch-logging/-/elasticsearch-logging-2.3.0.tgz","fileCount":4,"integrity":"sha512-8y11fm6hR2ibIqYnID+TMTWcXn5QtqaqOoSFa+oMcwKftJNYG6E2HpUurIkRqIj9nY9JLIWCGTjAfhzizp84uA==","signatures":[{"sig":"MEQCIEpcqUhtWSdksaplSzdpdMPKA+0Iaon5wSCrWqApZh25AiBxX1vcjraYEmWvH1G6Oz1qeTk3X+fdCeMbKh+fhvkQSw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7881},"main":"lib.js","gitHead":"6818cc7570a07305d24db999be003addcfdc68b5","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"nsrb","email":"nasyarobby@gmail.com"},"repository":{"url":"git+https://github.com/ditjenpajakri/pino-elasticsearch-logging.git","type":"git"},"_npmVersion":"10.5.0","description":"Elasticsearch ","directories":{},"_nodeVersion":"21.7.1","dependencies":{"pump":"^3.0.0","dotenv":"^16.4.5","split2":"^4.2.0","@elastic/elasticsearch":"8"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/elasticsearch-logging_2.3.0_1723776570822_0.7246316533373878","host":"s3://npm-registry-packages"}},"2.4.0":{"name":"@ditjenpajakri/elasticsearch-logging","version":"2.4.0","author":{"name":"nsrb"},"license":"MIT","_id":"@ditjenpajakri/elasticsearch-logging@2.4.0","maintainers":[{"name":"nsrb","email":"nasyarobby@gmail.com"}],"homepage":"https://github.com/ditjenpajakri/pino-elasticsearch-logging#readme","bugs":{"url":"https://github.com/ditjenpajakri/pino-elasticsearch-logging/issues"},"bin":{"log-to-es":"lib.js"},"dist":{"shasum":"efa44c868dcda50b4c1c27362a088124345c23fc","tarball":"https://registry.npmjs.org/@ditjenpajakri/elasticsearch-logging/-/elasticsearch-logging-2.4.0.tgz","fileCount":3,"integrity":"sha512-RbrAs2MtMivd1h9+sYDasSd959u2TJMbiUOICQJgZohwY1raXRC907ixf/JFJrOYi7B2pgSFwFLOgc4cPWs0Ww==","signatures":[{"sig":"MEUCIQCBfRzLEy++Dhk5L+FHR1vBF4Ym5f6XLj2eSIN/zxETKQIgWUyKWs32KwEplwlBQyq3gdFaqMpJVklv1Z3IeUjgxCY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8090},"main":"lib.js","gitHead":"7a8364ac15519e6d775cb02a99cc039767ff41e2","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"nsrb","email":"nasyarobby@gmail.com"},"repository":{"url":"git+https://github.com/ditjenpajakri/pino-elasticsearch-logging.git","type":"git"},"_npmVersion":"10.5.1","description":"Elasticsearch ","directories":{},"_nodeVersion":"22.0.0","dependencies":{"pump":"^3.0.0","dotenv":"^16.4.5","split2":"^4.2.0","@elastic/elasticsearch":"8"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/elasticsearch-logging_2.4.0_1744708658166_0.8038184275090061","host":"s3://npm-registry-packages-npm-production"}},"2.5.0":{"name":"@ditjenpajakri/elasticsearch-logging","version":"2.5.0","author":{"name":"nsrb"},"license":"MIT","_id":"@ditjenpajakri/elasticsearch-logging@2.5.0","maintainers":[{"name":"nsrb","email":"nasyarobby@gmail.com"}],"homepage":"https://github.com/ditjenpajakri/pino-elasticsearch-logging#readme","bugs":{"url":"https://github.com/ditjenpajakri/pino-elasticsearch-logging/issues"},"bin":{"log-to-es":"lib.js"},"dist":{"shasum":"42f1cef8918b8da7ae9701ef863df439b1bf4d9b","tarball":"https://registry.npmjs.org/@ditjenpajakri/elasticsearch-logging/-/elasticsearch-logging-2.5.0.tgz","fileCount":5,"integrity":"sha512-gqjkAYtabRrpTllImQfR1q9W/LZHIfpiWxEN4aCC810ZWYrr5Q1AnnFwHtH8LysRpwNI3JDcE3i8TkfHpts5LQ==","signatures":[{"sig":"MEYCIQDanASc9NUf3D/w+KJYcGxZU7JS8GnL0FuJ33gPjLWuTQIhANAd6wnjB9gqPe7xx3eAJ+z4F/L55vHXrGa+jKrypXKF","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9142},"main":"lib.js","gitHead":"5d7612fb3547dfc64e499d56ee5fab0052adf53e","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"nsrb","email":"nasyarobby@gmail.com"},"repository":{"url":"git+https://github.com/ditjenpajakri/pino-elasticsearch-logging.git","type":"git"},"_npmVersion":"10.9.4","description":"Elasticsearch ","directories":{},"_nodeVersion":"22.21.1","dependencies":{"pump":"^3.0.0","dotenv":"^16.4.5","split2":"^4.2.0","@elastic/elasticsearch":"8"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/elasticsearch-logging_2.5.0_1766459048073_0.26411106498260173","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"@ditjenpajakri/elasticsearch-logging","version":"3.0.0","description":"Elasticsearch ","main":"lib.js","bin":{"log-to-es":"lib.js"},"author":{"name":"nsrb"},"repository":{"type":"git","url":"git+https://github.com/ditjenpajakri/pino-elasticsearch-logging.git"},"license":"MIT","dependencies":{"@elastic/elasticsearch":"8","dotenv":"^16.4.5","pump":"^3.0.0","split2":"^4.2.0"},"bugs":{"url":"https://github.com/ditjenpajakri/pino-elasticsearch-logging/issues"},"homepage":"https://github.com/ditjenpajakri/pino-elasticsearch-logging#readme","devDependencies":{},"scripts":{"test":"node --test"},"_id":"@ditjenpajakri/elasticsearch-logging@3.0.0","_integrity":"sha512-fA3KeSNNTRRFz7afga1EnkPgduX0sV3CXFq8Fv8t3W7lQgbrd+10jCV0H5BqhZyP2EtD5S2ZvdhQClVYLLEpDA==","_resolved":"/private/var/folders/5q/xwr95xds3xz606g84dm0g26h0000gn/T/732b1fd8d0f5d121cf3c54d466558395/ditjenpajakri-elasticsearch-logging-3.0.0.tgz","_from":"file:ditjenpajakri-elasticsearch-logging-3.0.0.tgz","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-fA3KeSNNTRRFz7afga1EnkPgduX0sV3CXFq8Fv8t3W7lQgbrd+10jCV0H5BqhZyP2EtD5S2ZvdhQClVYLLEpDA==","shasum":"944e879fa7d2dded250f74ffd786c7d7bb7332a2","tarball":"https://registry.npmjs.org/@ditjenpajakri/elasticsearch-logging/-/elasticsearch-logging-3.0.0.tgz","fileCount":10,"unpackedSize":20800,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGSexCBeAZmTkZmXsQ58jzfBmMzmg27UO0f1NXoQMqcpAiEAn96HtCmrIRD1WEw9z5uh4mBI6RMkrQKgCqO2qjl59Cg="}]},"_npmUser":{"name":"nsrb","email":"nasyarobby@gmail.com"},"directories":{},"maintainers":[{"name":"nsrb","email":"nasyarobby@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/elasticsearch-logging_3.0.0_1789210481286_0.8344278935298042"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-04T09:10:05.452Z","modified":"2026-09-12T10:54:41.619Z","1.0.0":"2023-09-04T09:10:05.717Z","1.1.0":"2023-09-04T09:26:04.949Z","2.0.0":"2024-06-06T03:57:06.759Z","2.0.1":"2024-06-07T04:38:39.978Z","2.2.0":"2024-08-09T09:43:38.044Z","2.2.1":"2024-08-09T11:56:01.866Z","2.3.0":"2024-08-16T02:49:31.006Z","2.4.0":"2025-04-15T09:17:38.342Z","2.5.0":"2025-12-23T03:04:08.231Z","3.0.0":"2026-09-12T10:54:41.442Z"},"bugs":{"url":"https://github.com/ditjenpajakri/pino-elasticsearch-logging/issues"},"author":{"name":"nsrb"},"license":"MIT","homepage":"https://github.com/ditjenpajakri/pino-elasticsearch-logging#readme","repository":{"type":"git","url":"git+https://github.com/ditjenpajakri/pino-elasticsearch-logging.git"},"description":"Elasticsearch ","maintainers":[{"name":"nsrb","email":"nasyarobby@gmail.com"}],"readme":"@ditjenpajakri/elasticsearch-logging\n\n## 3.0.0 breaking change\n\nTLS certificate verification is on by default. Existing HTTPS deployments that\nuse a self-signed Elasticsearch certificate must set:\n\n```\nLOG_ES_REJECT_UNAUTHORIZED=false\n```\n\n`http://` nodes are unchanged. See **Self-signed Elasticsearch** below.\n\n## Add to existing project\n\n```\nyarn global add @ditjenpajakri/elasticsearch-logging\n\n# or npm install -g @ditjenpajakri/elasticsearch-logging\n```\n\nSetup the environment variables\n\n```\nLOG_ES_HOST                 Elasticsearch node. Default: http://localhost:9200\nLOG_ES_USER                 Elasticsearch username\nLOG_ES_PASS                 Elasticsearch password\nLOG_ES_INDEX                Elasticsearch Index. Default: DJP-%{DATE}\nLOG_ES_FLUSH_BYTES          Bytes size before flushing to Elasticsearch\nLOG_ES_FLUSH_INTERVAL       Interval time before flushing to Elasticsearch (in ms). Default: 30000 miliseconds\nLOG_ES_MAX_BYTES            Max JSON line length before the document is replaced with an\n                            ECS allowlist stub. Default: 32768.\nLOG_ES_REJECT_UNAUTHORIZED  Verify the Elasticsearch TLS certificate. Default: true.\n                            Set to false only for self-signed certificates (see below).\nLOG_ES_CA_FINGERPRINT       SHA-256 fingerprint of the Elasticsearch HTTP CA (optional).\n```\n\n```\nnode server.js | log-to-es\n```\n\n### Self-signed Elasticsearch (HTTPS)\n\nTLS certificate verification is **on by default**. `http://` nodes are unaffected.\n\nIf Elasticsearch uses a certificate Node.js does not trust (typical for local\ndev, Docker, or an in-cluster self-signed HTTP CA), the client will fail\nhandshake until you opt out or pin the CA.\n\n**Option A — disable verification (dev / known private network only):**\n\n```\nLOG_ES_HOST=https://elasticsearch:9200\nLOG_ES_REJECT_UNAUTHORIZED=false\n```\n\nThis accepts any certificate, including a MITM. Do not use this on an untrusted\nnetwork.\n\n**Option B — pin the CA fingerprint (preferred when you cannot install a CA):**\n\n```\nLOG_ES_HOST=https://elasticsearch:9200\nLOG_ES_CA_FINGERPRINT=<sha256 hex of the HTTP CA>\nLOG_ES_REJECT_UNAUTHORIZED=false\n```\n\n`LOG_ES_REJECT_UNAUTHORIZED=false` is still required here: Node will not trust\nthe self-signed cert from the system store. The client then checks\n`LOG_ES_CA_FINGERPRINT` instead of a full CA file.\n\nGet the fingerprint from Kibana/Elastic (HTTP CA) or:\n\n```\nopenssl s_client -connect elasticsearch:9200 </dev/null 2>/dev/null \\\n  | openssl x509 -noout -fingerprint -sha256\n```\n\nStrip colons from the SHA256 fingerprint before setting the env var.\n","readmeFilename":"README.md"}