Comments (4)
Thanks for the question! I admit, this feature might not be the most useful, so I don't think it's worth spending a lot of time on.
The idea would be if you had several time series indices on a cluster to be able to compare logs-2019-02-01
and logs-2019-03-01
and see if any of the mappings had changed between those two indices. The output could be a string similar to the go-comp output.
from vulcanizer.
I've got a POC going with https://github.com/nsf/jsondiff
The problem is that the output is absolutely massive because of the mapping file sizes.
I was working on a custom reporter for https://github.com/google/go-cmp but it was a bit over my head. The default settings for go-cmp is very verbose, so we would need a custom reporter, as seen here: https://pkg.go.dev/github.com/google/go-cmp/[email protected]?tab=doc#example-Reporter.
The example reporter only outputs the actual diff with the path leading up to that, but it's still very dense so would need some customisation.
root
["mappings"]
.(map[string]interface {})
["kube-logs"]
.(map[string]interface {})
["properties"]
.(map[string]interface {})
["extra"]
.(map[string]interface {})
["properties"]
.(map[string]interface {})
["req"]
.(map[string]interface {})
["properties"]
.(map[string]interface {})
["headers"]
.(map[string]interface {})
["properties"]
.(map[string]interface {})
["dnt"]
:
-: <invalid reflect.Value>
+: map[fields:map[keyword:map[ignore_above:256 type:keyword]] norms:false type:text]
root
["mappings"]
.(map[string]interface {})
["kube-logs"]
.(map[string]interface {})
["properties"]
.(map[string]interface {})
["message_args"]
.(map[string]interface {})
["fields"]
:
-: map[keyword:map[ignore_above:256 type:keyword]]
+: <invalid reflect.Value>
I also have some reflect value issues here.
from vulcanizer.
The main issue for go-cmp is that we don't have a struct this can be marshalled in to, so everything is a map[string]interface {}
from vulcanizer.
It looks like nsf/jsondiff#6 was finally solved! Going to give it a try
from vulcanizer.
Related Issues (19)
- Integrate public CI server HOT 1
- Integrate linting to the project HOT 1
- Compatibility with Elasticsearch Domain hidden behind a Loadbalancer HOT 8
- Snapshot list show incorrect finished date while running a snapshot HOT 4
- allow setting username/password in yaml config HOT 1
- Integrate go-docs to build documentation HOT 1
- Panic during golangci-lint typecheck (cgo files)
- Add an ability to set multiple hosts per cluster HOT 1
- Malformed http request HOT 3
- Request to add prompt for password HOT 8
- Passing authentication through Go API HOT 2
- Get index settings for "private" indices not working HOT 3
- Allow setting cluster settings to null HOT 6
- Get Disk Allocation information for Nodes HOT 2
- Release v0.5.2 HOT 3
- A link in this repo's readme points to a folder called "vendor" which does not (or no longer?) exists in this repo. Gives Status code [404:NotFound] HOT 1
- Provide pre built releases for the major platforms HOT 3
- AWS Elasticsearch Service Support - PR's Welcome? HOT 4
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 vulcanizer.