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

ES type error on IP network report #56

Closed
biolds opened this issue Aug 9, 2017 · 5 comments
Closed

ES type error on IP network report #56

biolds opened this issue Aug 9, 2017 · 5 comments

Comments

@biolds
Copy link

biolds commented Aug 9, 2017

Using ES 5.5, and 0.8.0 (Rev: 270451f),
when using an "ip" mapping type for dest_ip and src_ip fields, selecting a report for a network fails (using the "Related Reports" dropdown menu in an ip report).
The loading sign shows up and stays indefinitely.
The last POST query shows an exception from ES:

Can only use prefix queries on keyword and text fields - not on [dest_ip] which is of type [ip]
@jasonish
Copy link
Owner

jasonish commented Aug 9, 2017

Ok, 2 issues. First, the error should ripple back to the UI. There are some places where I need to clean this up.

Second, EveBox is designed to work with the default Logstash template which does not map src_ip and dest_ip to the IP type. But this isn't the first I've seen this done. So I'll have to look into detecting if its mapped or not, and alter the query depending on if it is or not.

@regit
Copy link
Contributor

regit commented Oct 11, 2017

@jasonish do you plan to work on it soon ? If not we're going to have a look.

@jasonish
Copy link
Owner

@jasonish do you plan to work on it soon ? If not we're going to have a look.

I assume you mean the issue where the IP addresses are mapped to the IP type? Yes, I plan to support that soon. Probably in the next few weeks. I see a need to do more parsing of the template for cases where there are changes from the standard logstash template.

@jasonish jasonish added this to the 0.9.0 milestone Jan 9, 2018
@jasonish
Copy link
Owner

Anyone want to give this a test:

https://evebox.org/files/development/evebox-latest-amd64.deb

Its not true support for CIDR address or the IP datatype, but it should work now whether or not src_ip/dest_ip are mapping to an IP datatype.

I'm going to look into proper IP datatype/CIDR searches after I do a release right away.

@biolds
Copy link
Author

biolds commented Jan 22, 2018

Works great, thanks!

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

No branches or pull requests

3 participants