Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tangible/jitsu-elasticsearch-destination

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tangible/jitsu-elasticsearch-destination

Elasticsearch destination plugin for Jitsu

  • 0.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
3
Weekly downloads
 
Created
Source

Elasticsearch destination for Jitsu

Elasticsearch destination plugin for Jitsu based on Jitsu SDK.

Using Elasticsearch Destination UI

nano docker-compose.yml
...
services:
    jitsu:
        image: jitsucom/jitsu:tangible
...

Developers

Using

Set config.json:

cp config.json.example config.json
nano config.json

Install all dependencies for a project

yarn install

Build destination:

yarn build

If everything is ok - resulted destination file location

./dist/elasticsearch-destination.js

Setup with CentOS

docker ps
yum install epel-release
yum install dnf
npm i -g corepack
sudo dnf install nodejs
sudo dnf install npm
npm install -g npx
npx jitsu-cli@0.7.5 extension create --type destination
'''
  Need to install the following packages:
    jitsu-cli@0.7.5
  Ok to proceed? (y) y
  ? Please, provide project name: jitsu-elasticsearch
  ? Project directory: /root/application/jitsu-elasticsearch
  [info ] - Creating new jitsu project in /root/application/jitsu-elasticsearch
  [info ] - Project directory doesn't exist, creating it!
  [info ] - ✨ Done
'''

Settings the plugin with Jitsu server (dev)

cd /root/application/my-plugins/
tar -C /root/application/my-plugins/jitsu-elasticsearch-destination/ -cvzf jitsu-elasticsearch-destination.tgz .
mv jitsu-elasticsearch-destination.tgz /root/application/my-plugins/jitsu-elasticsearch-destination/

add this line to "volumes:" section

nano docker/eventnative.yaml
[...]
destinations:
  jitsu-elasticsearch-destination:
    only_tokens:
      - my_token
    type: npm
    package: /home/eventnative/data/plugins/jitsu-elasticsearch/jitsu-elasticsearch-destination.tgz
    mode: stream
    config:
        anonymous: true,
        elasticsearch_domain: "<elastic_url>",
        elasticsearch_port: "<elastic_port>",
        elasticsearch_target: "jitsu"
        elasticsearch_apikey: "<api_key>"
nano docker-compose.yml
- /root/application/my-plugins/:/home/eventnative/data/plugins/
- /root/application/docker/eventnative.yaml:/home/eventnative/data/config/eventnative.yaml

testing

Run tests

yarn test

Validate configs

yarn build && yarn validate-config -c config.json

Validate destination config: with json string:

yarn validate-config --config-object '{"api_secret": "abc","token": "def", "project_id": "123"}'

with json file:

yarn validate-config --config config.json

Keywords

FAQs

Package last updated on 11 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc