Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bettermap: a.fields is undefined #2460

Closed
najamansari opened this issue Dec 26, 2014 · 2 comments
Closed

Bettermap: a.fields is undefined #2460

najamansari opened this issue Dec 26, 2014 · 2 comments

Comments

@najamansari
Copy link

Hello!

I set up Logstash to parse the client IPs from an Nginx logfile and convert them into a longlat array. When I use that field in a Bettermap module in Kibana, I get the following error in the browser console:

Empty string passed to getElementById(). app.js:4
"Error: a.fields is undefined
b.get_data/</</b.data<@http://<host>/dashboard/app/panels/bettermap/module.js:8:845
_b@http://<host>/dashboard/app/app.js:7:7549
b.get_data/</<@http://<host>/dashboard/app/panels/bettermap/module.js:8:808
fc/h/g.promise.then/i@http://<host>/dashboard/app/app.js:9:453
fc/i/<.then/<@http://<host>/dashboard/app/app.js:9:1014
ic/this.$get</f.prototype.$eval@http://<host>/dashboard/app/app.js:9:6959
ic/this.$get</f.prototype.$digest@http://<host>/dashboard/app/app.js:9:5753
ic/this.$get</f.prototype.$apply@http://<host>/dashboard/app/app.js:9:7109
f@http://<host>/dashboard/app/app.js:9:11505
r@http://<host>/dashboard/app/app.js:9:13216
sc/</v.onreadystatechange@http://<host>/dashboard/app/app.js:9:13851
"

My Logstash configuration is:

filter {
  grok {
    match => {
      message => "%{IPORHOST:clientip} \[%{HTTPDATE:timestamp}\] \"%{WORD:verb} %{URIPATHPARAM:request} HTTP/%{NUMBER:httpversion}\" %{NUMBER:response:int} (?:%{NUMBER:bytes:int}|-) (?:\"(?:%{URI:referrer}|-)\"|%{QS:referrer}) %{QS:agent} %{BASE10NUM:request_duration:float}"
    }
  }
  date {
    locale => "en"
    match => [ "timestamp" , "dd/MMM/YYYY:HH:mm:ss Z" ]
  }
  mutate {
    remove_field => [ "timestamp" ]
  }
  geoip {
    source => "clientip"
    target => "geoip"
    add_field => [ "[geoip][coordinates]", "%{[geoip][longitude]}" ]
    add_field => [ "[geoip][coordinates]", "%{[geoip][latitude]}"  ]
  }
  mutate {
    convert => [ "coordinates", "float" ]
  }
}

I'm not sure if this is a bug or a a configurational error. Any help will be greatly appreciated. Thanks!

Edit: redacted hostnames

@rashidkpc
Copy link
Contributor

Seems like this is a configuration error, please join us in #kibana on Freenode for interactive troubleshooting, Github issues are for confirmed bugs and feature requests.

@najamansari
Copy link
Author

Noted! I'll review my Kibana dashboard and join you guys on Freenode if I still can't nail it.

Thanks and regards,
Najam Ahmed Ansari

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants