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

About the traffic hsitogram #147

Closed
cksjackey opened this issue Jun 5, 2013 · 1 comment
Closed

About the traffic hsitogram #147

cksjackey opened this issue Jun 5, 2013 · 1 comment

Comments

@cksjackey
Copy link

Hi All,

First of all, I am so impressive of using the latest version of kibana 3. I have installed logstash to monitor the firewall log and I would like to create a histogram to show the bandwidth usage so I could then filter by either source or destination IP address to find out the top talker.

To archive that, I have created a histogram and configure it with following parameter.

Mode: Total
Field: @fields.sent <==how many bytes does the source IP address sent out

However I receive the following message.

ClassCastException[org.elasticsearch.index.field.data.strings.SingleValueStringFieldData cannot be cast to org.elasticsearch.index.field.data.NumericFieldData]
Test

query1 (2542) @fields.sent total per 30s | (0 hits)
Error: Time mode requires the flot.time plugin.

query1 (2542) @fields.sent total per 30s | (0 hits)
Error: Time mode requires the flot.time plugin.

It would be highly appreciate if someone could help or share any idea on it. Many thanks.

Rgds,
Jacky

@Lins59
Copy link

Lins59 commented Jun 5, 2013

Hi,

You have to cast the number of bytes sent into an int with Logstash.
This can be done using : (%{NUMBER:bytes:int}|-) (please note the :int).
Casting works also with a float (but you won't use it in this situation)

Regards,
Pierre

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

3 participants