Comments (9)
I would also need this feature to periodically query data from on index, modifying it and writing it to a different index.
In general, I think it would make sense, that all input plugins that are not processing 'unlimited' streams should have unified scheduling options. Current situation is quite different, e.g.:
https://www.elastic.co/guide/en/logstash/current/plugins-inputs-elasticsearch.html
- does not support scheduling
https://www.elastic.co/guide/en/logstash/current/plugins-inputs-exec.html
- supports configuring an interval in seconds
https://www.elastic.co/guide/en/logstash/current/plugins-inputs-jdbc.html
- supports cron-like scheduling (rufus): schedule => "* * * * *"
https://www.elastic.co/guide/en/logstash/current/plugins-inputs-http_poller.html
- supports different cron-like scheduling (rufus) A hash with + key: "cron" | "every" | "in" | "at" + value: string Examples: a) { "every" ⇒ "1h" } b) { "cron" ⇒ "* * * * * UTC" }
from logstash-input-elasticsearch.
+1 vote
from logstash-input-elasticsearch.
+1
from logstash-input-elasticsearch.
@JathinSanghvi @CraigFoote We don't' have a voting system, and a +1 comment doesn't provide enough details about what you are asking -- can you be specific?
If you want to contribute a +1
the best way to do that without sending a few hundred emails (a comment sends such emails) is to use Github's reaction feature (the smiley face at the top of every comment and issue).
from logstash-input-elasticsearch.
In terms of solving this, Elasticsearch already has facilities for searching on date ranges based on 'now' -- Check out these docs: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-query.html#ranges-on-dates
from logstash-input-elasticsearch.
I believe it is similar to what I need:
I need to run query periodically by some interval, or better by cron schedule as in jdbc input plugin.
It might also be useful to have last_run_time as a variable - it can be used in query.
In terms of solving this, Elasticsearch already has facilities for searching on date ranges based on 'now' -- Check out these docs: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-query.html#ranges-on-dates
That doesn't solve the issue of running query periodically.
from logstash-input-elasticsearch.
+1
from logstash-input-elasticsearch.
Some unified scheduling option would be great.
In the meantime I've ported Rufus based scheduling support with PR #81.
Along with logstash-filter-elasticsearch it is enough for me to do near-realtime lookup enrichments .
from logstash-input-elasticsearch.
scheduling by @davidecavestro (pr #81) has been merged into master and released in version 4.2.0 of this plugin
from logstash-input-elasticsearch.
Related Issues (20)
- Cannot get new connection from pool when same pipeline read and write to same index HOT 7
- [Doc] Update links to new cloud content in Logstash Reference
- Clearing a scroll occasionally raises a 'too_long_frame_exception' HOT 7
- Allow the use of the size parameter inside a query
- investigate plugin CI failures (against snapshots)
- plugin fails to start with default hosts setting
- Use "search_after" instead of "scroll" HOT 1
- Improve UX of connection+product validation at register
- Test failing with JNR error: getprotobyname_r failed
- regression on Manticore 0.8.0 due port being part of host
- custom user agent no longer set since LS 7.16 HOT 1
- Add `schedule_every` setting HOT 1
- Failure to create an event from the payload can crash the plugin
- Add a "sincedb" type of mecanism HOT 1
- Hello, how can logstash-input-elasticsearch support the ignore_unavailable function of elasticsearch? HOT 1
- Results from all scrolls for each slice are stored in memory leading to OOM HOT 1
- The plugin doesn't work with Elasticsearch on cloud `cloud_id` & `api_key` settings.
- BREAKING: ssl_certificate_verification => true uses deprecated verifier since v4.17.0
- Add the ability to select between GET and POST method for queries, in order to support also Elasticsearch servers behind Load Balancers
- Need cleaning up resources for es-ruby client when pipeline restart
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logstash-input-elasticsearch.