{"action":"opened","issue":{"url":"https://api.github.com/repos/elastic/kibana/issues/3523","labels_url":"https://api.github.com/repos/elastic/kibana/issues/3523/labels{/name}","comments_url":"https://api.github.com/repos/elastic/kibana/issues/3523/comments","events_url":"https://api.github.com/repos/elastic/kibana/issues/3523/events","html_url":"https://github.com/elastic/kibana/issues/3523","id":66532618,"number":3523,"title":"Kibana appears to break-down when I use scripted fields.","user":{"login":"dev-shubh","id":11183147,"avatar_url":"https://avatars.githubusercontent.com/u/11183147?v=3","gravatar_id":"","url":"https://api.github.com/users/dev-shubh","html_url":"https://github.com/dev-shubh","followers_url":"https://api.github.com/users/dev-shubh/followers","following_url":"https://api.github.com/users/dev-shubh/following{/other_user}","gists_url":"https://api.github.com/users/dev-shubh/gists{/gist_id}","starred_url":"https://api.github.com/users/dev-shubh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dev-shubh/subscriptions","organizations_url":"https://api.github.com/users/dev-shubh/orgs","repos_url":"https://api.github.com/users/dev-shubh/repos","events_url":"https://api.github.com/users/dev-shubh/events{/privacy}","received_events_url":"https://api.github.com/users/dev-shubh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-06T05:33:39Z","updated_at":"2015-04-06T05:33:39Z","closed_at":null,"body":"I am new to elasticsearch and Kibana. I was trying to use scripted fields in Kibana 4. \r\n![scripted_fileds](https://cloud.githubusercontent.com/assets/11183147/6936697/8dec0ebe-d872-11e4-9dae-731bac392fdc.png)\r\nI tried some very simple arithmetic operations(division) on two fields in scripted fields and it worked just fine. Then I was trying to use aggregations under scripted fields script and my kibana 4 worked working. \r\n![kibana_error_snap](https://cloud.githubusercontent.com/assets/11183147/6936714/bab90a32-d872-11e4-8869-2c07dbd618d5.png)\r\n\r\nAny help would be great. Also let me know if its possible to write script to do aggregation in scripted field script section. "}}