Kibana search with numbers is not fetching data from elastic search - elasticsearch

When I search with numbers in Kibana to get the data from elastic search, I am not getting any results.
I have below message stored in elastic search. If I search with 5723243287337 or 234234535, I do not get any results. But if I search with PHOENIX or any other text, I am getting results from elastic search.
13-04-13,ST,FRTTH-01,Rialto,CA,PHOENIX,AZ,85053,2.32,6.22,5723243287337,234234535,SO,1
Is there any known bug or am I missing any configuration. Appreciate any help. Thanks.

When indexing CSV data, it is better to define mappings for each of the fields. Otherwise, ES would try to guess the data type, and then do the indexing, leading to unexpected results. See here for explicit mappings.

Try to add quatation. Elastic search will treat "number" as a string, like other text.

Related

How to get all the index patterns which never had any documents?

For Kibana server decommissioning purposes, I want to get a list of index patterns which never had any single document and had documents.
How to achieve this using Kibana only?
I tried this but it doesn't give the list based on the document count.
GET /_cat/indices
Also in individual level getting the count to check the documents are there is time consuming .
GET index-pattern*/_count
You can try this. V is for verbose and s stands for sort.
GET /_cat/indices?v&s=store.size:desc
From the docs :
These metrics are retrieved directly from Lucene, which {es} uses internally to power indexing and search. As a result, all document counts include hidden nested documents.

ElasticSearch - Search by IP[regex]

I have Kibana and ES. I have many indexes. I am using message field in ElasticSearch. My goal is to mask all IP addresses, which I already do using Logstash.
Now, given the fact there are many different indexes, and also different log types, I would like to run either Kibana or ES query for any occurence of IP. Just in case, that I missed any of them. Also, I would like to do it for email format as well.
Question is, how can I run IP/email regex search on ElasticSearch or Kibana?
Message field is string type, and is indexed.
I have found what I was looking for. In my case this approach is valid, since I do not care about performance. This was just a test to make sure I don't 'leak' information.
ElasticSearch regex query.

Issue with visualizing a field in Kibana even when elasticsearch has its mapping

I have elasticsearch mapping which lists a field but when trying to visualize in kibana it doesnt list that field. Moreover i can see that field under 'popular' section of Discover page.
i see some note like:
"This field is present in your elasticsearch mapping but not in any documents in the search results. You may still be able to visualize or search on it."
What does this mean and how can i visualize a mapped field.
It's mean that you have a mapping but you don't have documents, you don't have data,so you need to index data to elasticsearch index

Splunk to Elasticsearch datamodel translation

I'm trying to convert Splunk searches to Elasticsearch searches. The one problem I'm having is what to do with Splunk's datamodels. How would I transfer performing the search in a specific datamodel in Splunk to an Elasticsearch search?
For example, in a Splunk search:
tstats summariesonly=T count from datamodel="Web"........
What would be the Elasticsearch equivalent to performing the search in the "Web" datamodel?
Any help, no matter how small will help indeed. Thank you
Open the query in search and use the search inspector. The inspector will show you know which query splunk has actually executed.
While tstats searches index-time fields, you will have to reproduce all datamodel fields and aggregations (i.e. datamodel acceleration) and this is not an easy task, if at all possible.

Can I narrow results from Elastic Search _stats get?

I am using elastic search for the project I'm working on and I was wondering if there was a way to narrow the results I get from an indices stats search.
https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-stats.html
I currently use the docs to narrow the data I get back about the indices but now I want to only get back ones with a doc count greater than 0. Does anyone know if this is possible or how to?
Thanks!
For elastic search 1.5.2
If you're concerned about the size of the response (i.e. if you many many indices with many shards), the best you can do is to use response filtering (available only since ES 1.7) and only retrieve the docs field that you can further filter on the client-side:
curl 'localhost:9200/_stats/docs?pretty&filter_path=**.docs.count'

Resources