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

Elasticsearch version #2207

Closed
xushuangs opened this issue Apr 11, 2022 · 7 comments
Closed

Elasticsearch version #2207

xushuangs opened this issue Apr 11, 2022 · 7 comments
Assignees

Comments

@xushuangs
Copy link

Hi all. I built a new linux test cluster, and the operating system was changed from Centos7 to Debian11. Debian11 no longer supports Elasticsearch6.x. Can Alarm Logging be used with elasticsearch 8.x?
I am using phoebus 4.6.5.

@georgweiss
Copy link
Collaborator

We're planning for a migration to Elasticsearch 8.x during Q2, but cannot say when this will be completed.

@shroffk
Copy link
Member

shroffk commented Apr 11, 2022

I have a temporary script to allow the use of elastic 7.x until we complete the migration to elastic 8. I wanted to add support for creating the templates automatically however this is not possible with the java client.
Please test it and let me know if it works and then I can open a MR

@shroffk
Copy link
Member

shroffk commented Apr 13, 2022

@xushuangs or @tanviash can you review

@shroffk shroffk self-assigned this Apr 13, 2022
shroffk added a commit that referenced this issue Apr 13, 2022
#2207 script to manually create alarm msg templates (temporary patch)
@xushuangs
Copy link
Author

I tryed to create the new index template through es7_mapping_definitions.sh. Then I can query the alarm data through curl and kibana.
sh phoebus-parent-4.6.5/services/alarm-logger/startup/es7_mapping_definitions.sh
{"acknowledged":true}{"acknowledged":true}{"acknowledged":true}(alarm-environment)
curl -X GET 'http://localhost:9200/_template/*state*'
{"alarms_state_template":{"order":0,"index_patterns":["_alarms_state"],"settings":{"index":{"number_of_shards":"1"}},"mappings":{"properties":{"severity":{"type":"keyword"},"current_message":{"type":"keyword"},"mode":{"type":"keyword"},"message_time":{"format":"yyyy-MM-dd HH:mm:ss.SSS","type":"date"},"current_severity":{"type":"keyword"},"APPLICATION-ID":{"type":"text"},"pv":{"type":"keyword"},"latch":{"type":"boolean"},"time":{"format":"yyyy-MM-dd HH:mm:ss.SSS","type":"date"},"message":{"type":"keyword"},"config":{"type":"keyword"},"value":{"type":"keyword"}}},"aliases":{}}}
image

@shroffk
Copy link
Member

shroffk commented Apr 15, 2022

Great!! thanks for testing @xushuangs
Can we close this Issue

@xushuangs
Copy link
Author

Yes. Thanks for you script!

@shroffk shroffk closed this as completed Apr 20, 2022
@kasemir
Copy link
Collaborator

kasemir commented Apr 20, 2022

To clarify, we now support ES 6 as well as ES 7, right?
ES 6 works with mapping_definitions.sh, ES 7 with es7_mapping_definitions.sh.

Can Alarm Logging be used with elasticsearch 8.x?

Not at this time.

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

No branches or pull requests

4 participants