Comments (5)
Hi,
Your problem is full-text search by ansible_result?
If yes, you can use template (file call ansible.template) for ElasticSearch 5
from ansible-logstash-callback.
Thanks,
Will try it .
from ansible-logstash-callback.
Also try to use the new version (updated yesterday)
from ansible-logstash-callback.
Hi,
Actually I'm trying to avoid full text search, because I have situation that my ansible module return multiple results like:
{"changed": false, "debug": "", "msg": "Testiranje sigurnosnih postavki operacijskog sustava", "results": [{"login_encrypt_method": {"msg": "Zadovoljavajuci algoritam sazimanja sha512", "status": "true"}}], "stderr": null, "stdout": " password hashing algorithm is sha512\n", "stdout_lines": [" password hashing algorithm is sha512"]}
And that is saved like ansible_result, what I'm trying to accomplish, is ability to create search by specific filed in json tree.
For example I'm trying to pull all hosts that have status "true", so using lucene queries it is:
ansible_result.result.login_encrypt_method:true
And it will provides me all hosts that had true on ansible run.
As I mention before if if using json_dump, that all nested fields in ansible_results are interpreted as part of string of ansible_result, and not like field. (correct me if I'm wrong)
Not sure eventually ansible_result could be nested.
Dubravko
from ansible-logstash-callback.
@dsever Have you been able to retrieve data from ansible_result
as JSON?
from ansible-logstash-callback.
Related Issues (13)
- Not picking up ansible.cfg settings HOT 1
- help adding another field
- logstash callback, does not support setting 'options' HOT 2
- cannot import ansible.template in elasticseach 7.4.1 HOT 1
- disable facts lines
- Does not work with ansible 2.9.2 HOT 1
- Only send facts of one host in a play HOT 1
- Name of play and play ID are not logged HOT 3
- Ansible version that runs the playbook is not logged HOT 2
- Task IDs should be logged HOT 5
- Update your README for ElasticSearch 6.x
- Port field in Logstash output HOT 2
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 ansible-logstash-callback.