I want to speak with details.
in another table of mine with "Servers" name I have this column names:
Id,ServerName,Action,IP,IPValid,DNSName,...
I want to search all fields of table where servername like server1
so as your recommendation I config the output as below :
index => servers
document_type => server
document_id => "%{servername}"
with calling http://localhost:9200/servers/servername/server1
the results is:
{"_index":"servers","_type":"servername","_id":"server1","found":false}
and with calling http://localhost:9200/servers
the results is like:
"Server1-4": { "properties": { "@timestamp": { "type": "date" }, "@version": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "action": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "description": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "dnsname": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "id": { "type": "long" }, "ip": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "ipvalid": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "location": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "port_number": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "processcount": { "type": "long" }, "processsize": { "type": "long" }, "servername": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "switch_device": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "upload": { "type": "boolean" }, "webservice": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } } } }