Giter Club home page Giter Club logo

Comments (15)

radoondas avatar radoondas commented on August 18, 2024

@borian I'll have a look and test it. Are you sure you have also uploaded template before pushing data? Another thought is what version of elasticsearch do you use?

from apachebeat.

borian avatar borian commented on August 18, 2024

I am currently testing with docker-elk, which uses the latest version (2.2.0),
I have tried uploading the template before pushing data. But in my current configuration I am using logstash with the beat input, which might be a source of problems

from apachebeat.

radoondas avatar radoondas commented on August 18, 2024

If possible, could you test it also without Logstash? I am almost 100% sure it is caused by logstash.
Do you use the same name for the index? If not, then logstash pushed its own template and this will be most likely the cause of the issue.

from apachebeat.

borian avatar borian commented on August 18, 2024

I've now also tested it with direct output to ES and the problem still persists.

from apachebeat.

radoondas avatar radoondas commented on August 18, 2024

Just to make sure, you have to perform test with empty elasticsearch, with no index and template. If you only change output but elasticsearch has already data in it, it will not update field types.

from apachebeat.

borian avatar borian commented on August 18, 2024

apachebeat sends strings according to the source

cpu_load     string  
uptime       int  
req_per_sec  string

from apachebeat.

radoondas avatar radoondas commented on August 18, 2024

Yes, this is true.
Template which is imported to empty elasticsearch is parsing string as float in the end as defined in template mapping. But once it is already in elasticsearch as string, then it is not parsed as float.
JSON format is also text parsed by Elasticsearch and if correct template is imported, then all work well.

OK, but honestly, apachebeat should sent float in it. I take it.
Meanwhile I am working on a fix, which will convert strings correctly.

from apachebeat.

borian avatar borian commented on August 18, 2024

it looks like you fixed the issue for the beats repository, can you apply the fix here also ?
or are you intending to depricate this package in favor of beats ?

from apachebeat.

radoondas avatar radoondas commented on August 18, 2024

true, I do work on porting apachebeat to beats and implement best what I have learned so far :)

Work is in progress and I will apply fix also here, but I have to change some part of the mechanism of the apachebeat. I want to reflect also changes of fieldnames and more to be as close as possible and usable with same templates.

I am not decided yet, if I deprecate apachebeat in future. If there is community drive using it as standalone beat, I will develop it further. Let's see what will happen :)

from apachebeat.

radoondas avatar radoondas commented on August 18, 2024

Note, apachebeat is working just fine, if you import mapping first. Then ES handles float values correctly even coming from beat as string.

from apachebeat.

borian avatar borian commented on August 18, 2024

As stated obove, I applied the mappings on a fresh elk-stack before starting apachebeat.
I still get the following errors in Kibana

  Expected numeric type on field [apache.cpu_load], but got [string] 
  Expected numeric type on field [apache.req_per_sec], but got [string]

from apachebeat.

radoondas avatar radoondas commented on August 18, 2024

@borian I have committed complete rework (simplification) of apachebeat to fix issues with float types and also changes according to metricbeat to have the (almost) same structure. If you have time to test branch: simplification. I will appreciate any feedback. Work is still in progress in this branch.

from apachebeat.

borian avatar borian commented on August 18, 2024

types are working now! thanks a lot
I still can't view the graphs, it shows no results found, maybe some type missmatch

but I can't look into it right now
but thanks again for your work !

from apachebeat.

radoondas avatar radoondas commented on August 18, 2024

@borian you have to use also new visualizatuons since the structure has been changed as in metricbeat.

from apachebeat.

borian avatar borian commented on August 18, 2024

No, I forgot. Thanks for the follow-up
On 29 Mar 2016 17:51, "Radovan Ondas" [email protected] wrote:

@borian https://github.com/borian you have to use also new
visualizatuons since the structure has been changed as in metricbeat.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#17 (comment)

from apachebeat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.