@@ -23,7 +23,7 @@ export const Reason = ({ reason }) => {
2323 defaultMessage = "We did not find any log data and we are unable to diagnose why. {link}"
2424 values = { {
2525 link : (
26- < EuiLink href = { `${ ELASTIC_WEBSITE_URL } guide/en/beats/filebeat/${ DOC_LINK_VERSION } /filebeat-installation.html` } >
26+ < EuiLink target = "_blank" href = { `${ ELASTIC_WEBSITE_URL } guide/en/beats/filebeat/${ DOC_LINK_VERSION } /filebeat-installation.html` } >
2727 < FormattedMessage
2828 id = "xpack.monitoring.logs.reason.defaultMessageLink"
2929 defaultMessage = "Please verify your setup is correct."
@@ -44,7 +44,7 @@ export const Reason = ({ reason }) => {
4444 defaultMessage = "Set up {link}, then configure your Elasticsearch output to your monitoring cluster."
4545 values = { {
4646 link : (
47- < EuiLink href = { `${ ELASTIC_WEBSITE_URL } guide/en/beats/filebeat/${ DOC_LINK_VERSION } /filebeat-installation.html` } >
47+ < EuiLink target = "_blank" href = { `${ ELASTIC_WEBSITE_URL } guide/en/beats/filebeat/${ DOC_LINK_VERSION } /filebeat-installation.html` } >
4848 { i18n . translate ( 'xpack.monitoring.logs.reason.noIndexPatternLink' , {
4949 defaultMessage : 'Filebeat'
5050 } ) }
@@ -75,7 +75,10 @@ export const Reason = ({ reason }) => {
7575 defaultMessage = "Follow {link} to set up Elasticsearch."
7676 values = { {
7777 link : (
78- < EuiLink href = { `${ ELASTIC_WEBSITE_URL } guide/en/beats/filebeat/${ DOC_LINK_VERSION } /filebeat-module-elasticsearch.html` } >
78+ < EuiLink
79+ target = "_blank"
80+ href = { `${ ELASTIC_WEBSITE_URL } guide/en/beats/filebeat/${ DOC_LINK_VERSION } /filebeat-module-elasticsearch.html` }
81+ >
7982 { i18n . translate ( 'xpack.monitoring.logs.reason.noTypeLink' , {
8083 defaultMessage : 'these directions'
8184 } ) }
@@ -95,7 +98,7 @@ export const Reason = ({ reason }) => {
9598 defaultMessage = "Check that your {link} is correct."
9699 values = { {
97100 link : (
98- < EuiLink href = { `${ ELASTIC_WEBSITE_URL } guide/en/beats/filebeat/${ DOC_LINK_VERSION } /filebeat-installation.html` } >
101+ < EuiLink target = "_blank" href = { `${ ELASTIC_WEBSITE_URL } guide/en/beats/filebeat/${ DOC_LINK_VERSION } /filebeat-installation.html` } >
99102 { i18n . translate ( 'xpack.monitoring.logs.reason.noClusterLink' , {
100103 defaultMessage : 'setup'
101104 } ) }
@@ -115,7 +118,7 @@ export const Reason = ({ reason }) => {
115118 defaultMessage = "Check that your {link} is correct."
116119 values = { {
117120 link : (
118- < EuiLink href = { `${ ELASTIC_WEBSITE_URL } guide/en/beats/filebeat/${ DOC_LINK_VERSION } /filebeat-installation.html` } >
121+ < EuiLink target = "_blank" href = { `${ ELASTIC_WEBSITE_URL } guide/en/beats/filebeat/${ DOC_LINK_VERSION } /filebeat-installation.html` } >
119122 { i18n . translate ( 'xpack.monitoring.logs.reason.noNodeLink' , {
120123 defaultMessage : 'setup'
121124 } ) }
@@ -135,8 +138,8 @@ export const Reason = ({ reason }) => {
135138 defaultMessage = "We found logs, but none for this index. If this problem continues, check that your {link} is correct."
136139 values = { {
137140 link : (
138- < EuiLink href = "https://www.elastic.co/ guide/en/beats/filebeat/current /filebeat-installation.html" >
139- { i18n . translate ( 'xpack.monitoring.logs.reason.noNodeLink ' , {
141+ < EuiLink target = "_blank" href = { ` ${ ELASTIC_WEBSITE_URL } guide/en/beats/filebeat/${ DOC_LINK_VERSION } /filebeat-installation.html` } >
142+ { i18n . translate ( 'xpack.monitoring.logs.reason.noIndexLink ' , {
140143 defaultMessage : 'setup'
141144 } ) }
142145 </ EuiLink >
@@ -145,6 +148,29 @@ export const Reason = ({ reason }) => {
145148 />
146149 ) ;
147150 }
151+ else if ( false === reason . correctIndexName ) {
152+ title = i18n . translate ( 'xpack.monitoring.logs.reason.correctIndexNameTitle' , {
153+ defaultMessage : 'Corrupted filebeat index'
154+ } ) ;
155+ message = (
156+ < FormattedMessage
157+ id = "xpack.monitoring.logs.reason.correctIndexNameMessage"
158+ defaultMessage = "There is an issue reading from your filebeat indices. {link}."
159+ values = { {
160+ link : (
161+ < EuiLink
162+ target = "_blank"
163+ href = { `${ ELASTIC_WEBSITE_URL } guide/en/kibana/${ DOC_LINK_VERSION } /monitor-troubleshooting.html` }
164+ >
165+ { i18n . translate ( 'xpack.monitoring.logs.reason.correctIndexNameLink' , {
166+ defaultMessage : 'Click here for more information'
167+ } ) }
168+ </ EuiLink >
169+ )
170+ } }
171+ />
172+ ) ;
173+ }
148174
149175 return (
150176 < EuiCallOut
0 commit comments