-
Type:
Incident report
-
Resolution: Won't fix
-
Priority:
Blocker
-
None
-
Affects Version/s: None
-
Component/s: None
Hello!
I have the same problem, zabbix don't have a latest data history, if history table be stored in elastic search. I create indexes from /usr/local/src/zabbix-xxx/database/elasticsearch/elasticsearch.map and checked get request. I am paste config to /usr/local/etc/zabbix-server.conf:
### Option: HistoryStorageURL # History storage HTTP[S] URL. # # Mandatory: no # Default: HistoryStorageURL=http://127.0.0.1:9200 ### Option: HistoryStorageTypes # Comma separated list of value types to be sent to the history storage. # # Mandatory: no # Default: HistoryStorageTypes=uint,dbl,str,log,text
and paste config to /var/www/html/zabbix/conf/zabbix.php.conf:
$HISTORY['url'] = [
'uint' => 'http://127.0.0.1:9200',
'text' => 'http://127.0.0.1:9200',
'str' => 'http://127.0.0.1:9200',
'log' => 'http://127.0.0.1:9200',
'dbl' => 'http://127.0.0.1:9200'
];
// Value types stored in Elasticsearch.
$HISTORY['types'] = ['uint', 'text', 'str', 'log', 'dbl'];
But if i open latest data, i do not see any values. If get curl request to elastic, i found latest history. Please help/