I am experiencing issues with saving my Fleet settings Logstash Output . Despite multiple attempts, the configuration just won't save. Could this be related to using the free version? Has anyone else encountered this problem or have any insights on what might be causing this issue?
Any help or suggestions would be greatly appreciated!
What will not save? Your screenshot is in Japanese, can you provide more context or share it in English?
The basic license has a limitation that does not allow you to have a different output per policy, but you can use the logstash or kafka output if you want.
To do that you need to add an logstash output and set it as the default output for Logs and Monitoring, you need to have an elasticsearch output as well because the Fleet Server can only output to Elasticsearch, never to Logstash or Kafka.
After that you will see that your fleet policy will still be configured to send logs to Elasticsearch, but your other policies will only use the default output, which will be logstash now.
You need to have something like this in your Fleet output settings.
After I input the Fleet Logstash Output configurations, including certificates, etc., and I want to Save and apply settings, the Save and apply settings button is currently grayed out and cannot be saved.
The code you've shared is related to a warning in Kibana, specifically within the Fleet plugin, informing users that they must configure an encryption key for saved objects.
The message includes a link to Kibana's documentation, which explains how to configure the encryption key for secured saved objects. Kibana uses saved objects to persist user data, and the encryption key is needed to protect sensitive data.
Explanation of the Code:
FormattedMessage: Part of the react-intl library, which is used for internationalization. The id property (e.g., "xpack.fleet.encryptionKeyRequired.calloutDescription") is a unique key for translations, and defaultMessage is the fallback text if no translation is provided.
EuiLink: This component from Elastic UI (EUI) renders a clickable link. The href attribute points to the URL of the Kibana documentation (docLinks.links.kibana.secureSavedObject). The target="_blank" opens the link in a new tab, and the external attribute indicates that the link leads to an external website.
values: This object allows the FormattedMessage to include dynamic content. In this case, the {link} placeholder in defaultMessage is replaced by an actual link generated by the EuiLink component.
Issues to Look For:
docLinks Undefined: Ensure that docLinks is properly imported and contains the correct path (docLinks.links.kibana.secureSavedObject) pointing to the Kibana documentation. If docLinks is undefined, the link won't work.
Incorrect Translation ID: Ensure that the translation IDs (xpack.fleet.encryptionKeyRequired.calloutDescription and xpack.fleet.encryptionKeyRequired.link) are unique and match the corresponding translation files. If the IDs are incorrect, the message might not be translated or displayed properly.
EUI Version Compatibility: The EuiLink component and the external prop must be supported by your version of Elastic UI. Make sure that your EUI version supports this usage.
Debugging Steps:
Check if docLinks is available: Log the value of docLinks.links.kibana.secureSavedObject to see if it’s correctly populated.
Verify Translation Files: Ensure that the translation keys (xpack.fleet.encryptionKeyRequired.calloutDescription and xpack.fleet.encryptionKeyRequired.link) are correctly defined in the translation JSON files.
Ensure EUI Link Props: Ensure that external and target="_blank" are used properly and supported by your version of EUI. You can check the EUI documentation for the correct prop usage.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.