
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@deepstream/storage-elasticsearch
Advanced tools
A storage connector for deepstream and elasticsearch
deepstream storage connector for elasticsearch
This connector uses the npm elasticsearch package. Please have a look there for detailed options.
##Configuration Options
plugins:
storage:
name: elasticsearch
options:
host: 'localhost:9200'
index: 'someIndex'
defaultType: 'someType'
splitChar: '/'
indexSettings: '
{
"number_of_shards" : 1
}
'
indexMappings: '
{
"type1" : {
"properties" : {
"field1" : { "type" : "string", "index" : "not_analyzed" }
}
}
}
'
{
//The host that elasticsearch should use
host: 'localhost:9200',
//(Optional, no default). The authentication to elasticsearch
auth: 'user:password',
//(Optional, defaults to 'deepstream'). This is the index in elasticsearch,
//using database for consistency across all plugins.
index: 'someIndex',
//(Optional, defaults to 'deepstream_records'). This is the type in elasticsearch,
//using table for consistency across all plugins
defaultType: 'someType',
//(Optional, defaults to 1000). This is the ping timeout used
//when doing the initial ping to ensure the connection is setup correctly
pingTimeout: 200,
/* (Optional) A character that's used as part of the
* record names to split it into a tabel and an id part, e.g.
*
* books/dream-of-the-red-chamber
*
* would create a type called 'books' and store the record under the name
* 'dream-of-the-red-chamber'
*/
splitChar: '/'
/* (Optional) Index settings:
* https://www.elastic.co/guide/en/elasticsearch/reference/2.3/indices-update-settings.html
*/
indexSettings: {
number_of_shards: 1
}
/* (Optional) Index mapping:
* https://www.elastic.co/guide/en/elasticsearch/reference/2.3/indices-put-mapping.html
*/
indexMappings: {
type1: {
properties: {
field1: {
type: 'string',
index: 'not_analyzed'
}
}
}
}
}
##Basic Setup
var Deepstream = require( 'deepstream.io' ),
ElasticSearchStorageConnector = require( 'deepstream.io-storage-elasticsearch' ),
server = new Deepstream();
server.set( 'storage', new ElasticSearchStorageConnector( {
host: 'localhost:9200',
splitChar: '/'
}));
server.start();
FAQs
A storage connector for deepstream and elasticsearch
The npm package @deepstream/storage-elasticsearch receives a total of 1 weekly downloads. As such, @deepstream/storage-elasticsearch popularity was classified as not popular.
We found that @deepstream/storage-elasticsearch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.