Skip to content
This repository has been archived by the owner on Oct 19, 2020. It is now read-only.

Does the plugin handle wildcards? #17

Open
bossi6of9 opened this issue Jul 5, 2018 · 5 comments
Open

Does the plugin handle wildcards? #17

bossi6of9 opened this issue Jul 5, 2018 · 5 comments

Comments

@bossi6of9
Copy link

Hi,

I'm testing out this plugin, and it works fine as long as the queries don't use wildcards. Is this supported?

For example, this works fine:

| ess eaddr="http://1.2.3.4:9200" tsfield="@timestamp" index="nprobe-2018.07.03" latest=now earliest="now-360m" query="IPV4_DST_ADDR:5.6.7.8" fields=*

But this just spins:

| ess eaddr="http://1.2.3.4:9200" tsfield="@timestamp" index="nprobe-2018.07.03" latest=now earliest="now-360m" query="IPV4_DST_ADDR:1.2.3*" fields=*

@bossi6of9
Copy link
Author

Hi,

Any update on this issue?

@brunotm
Copy link
Owner

brunotm commented Jul 17, 2018

Hi @bossi6of9,
I wasn't able to reproduce it with very similar parameters searching against large indices.

Can you confirm that this search works in kibana dev tools or using curl ?

GET nprobe-2018.07.03/_search
{
	"sort": [{"@timestamp": {"order": "asc"}}],
	"query": {
		"bool": {
			"must": [
				{
					"range": {
						"@timestamp": {
							"gte": "now-360m",
							"lte": "now"
						}
					}
				},
				{
					"query_string": {
						"query": "IPV4_DST_ADDR:1.2.3*"
					}
				}
			]
		}
	}
}

@bossi6of9
Copy link
Author

bossi6of9 commented Jul 17, 2018 via email

@bossi6of9
Copy link
Author

bossi6of9 commented Jul 17, 2018 via email

@brunotm
Copy link
Owner

brunotm commented Jul 17, 2018

Thanks for getting back to me.
When I enter that in the Kibana console, I get:

No problem!

Look at the current query, i have later edited the post to correct the definition from timestamp to @timestamp that is your current time field. This is from where the missing mapping error comes from.

GET nprobe-2018.07.03/_search
{
	"sort": [{"@timestamp": {"order": "asc"}}],
	"query": {
		"bool": {
			"must": [
				{
					"range": {
						"@timestamp": {
							"gte": "now-360m",
							"lte": "now"
						}
					}
				},
				{
					"query_string": {
						"query": "IPV4_DST_ADDR:1.2.3*"
					}
				}
			]
		}
	}
}

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

No branches or pull requests

2 participants