Comments (6)
This is because of the Elastic api client currently is on 5.x on elasticsplunk, and due to breaking changes on Elastic 6.x (mainly one doc_type per index).
I'll update the API client and adjust the elasticsplunk code in order to support both 5/6 versions and let you know here.
Thanks!
from elasticsplunk.
Yes :)
Thanks!
from elasticsplunk.
Hi @lmammino, thanks for the detailed issue!
Can you please try using the doc_type (stype=default
) for the indexed document?
from elasticsplunk.
@brunotm,
thanks for your quick reply.
I just tried it now and I have a very similar result:
External search command 'ess' returned error code 1. Script output = "error_message=TypeError at "/opt/splunk/etc/apps/elasticsplunk/bin/splunklib/searchcommands/internals.py", line 519 : 'NoneType' object is not iterable "
from elasticsplunk.
Thanks for having a better look. I don't expect any commitment being this an open source project, but do you think you will have bandwidth anytime soon to work on supporting elastic 6.x?
from elasticsplunk.
@lmammino
i just had the time to look at this, and it happens that the current client is still compatible and i overlooked you ess options.
Could you please change the action to action=search
with the correct stype as before (you can also omit it for this case.
The following example works fine with your example above:
|ess eaddr="http://localhost:9200" action=search query="foo:bar" fields=* include_es=true include_raw=true tsfield=ts stype=default
Remember to check if the following also works for you:
|ess eaddr="http://localhost:9200" action=indices-list
Change the localhost with your ES address.
Cheers.
from elasticsplunk.
Related Issues (20)
- ESS queries not working HOT 8
- Using elasticsplunk with elasticsearch using readonlyREST HOT 5
- Will this work with http elk? HOT 2
- ESS queries not working - error HOT 4
- Unable to run queries HOT 2
- option scan=false is not working HOT 2
- handle documents with different fields HOT 1
- Does the plugin handle wildcards? HOT 5
- app broken
- How to use ESS command with ES and shield implemnted HOT 6
- Data no field timestamp, how to get the data?
- timestamp doesn't work with the format "fields.release_date"
- query against on Mulitple index
- user authentication for cluster health HOT 1
- Scroll request has only succeeded on ### shards out of ### HOT 1
- Add support for nested documents HOT 1
- Error searching in ES HOT 5
- Results in Statistic tab HOT 1
- Basic Auth not supported by my instance
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 elasticsplunk.