Skip to content

Commit

Permalink
add modules deprecation log for netflow, fb_apache and azure (#16548)
Browse files Browse the repository at this point in the history
relates: #16357
  • Loading branch information
kaisecheng authored Oct 14, 2024
1 parent dc0739b commit 4677cb2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions logstash-core/lib/logstash/config/modules_common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ def self.pipeline_configs(settings)
raise LogStash::ConfigLoadingError, I18n.t("logstash.modules.configuration.modules-unavailable", **i18n_opts)
end

specified_and_available_names
.select { |mn| mn != "arcsight" }
.each { |mn| deprecation_logger.deprecated("The #{mn} module has been deprecated and will be removed in version 9.") }

specified_and_available_names.each do |module_name|
connect_fail_args = {}
begin
Expand Down
2 changes: 1 addition & 1 deletion modules/netflow/configuration/logstash/netflow.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.

<% deprecation_logger.deprecated("The Netflow module has been deprecated in favor of the Beats Netflow module and may be removed in a future release. Learn more about the Beats Netflow module at https://www.elastic.co/guide/en/beats/filebeat/master/filebeat-module-netflow.html") %>
<% deprecation_logger.deprecated("The Netflow module has been deprecated in favor of the Beats Netflow module and will be removed in version 9. Learn more about the Beats Netflow module at https://www.elastic.co/guide/en/beats/filebeat/master/filebeat-module-netflow.html") %>
input {
udp {
type => "netflow"
Expand Down
2 changes: 1 addition & 1 deletion x-pack/modules/azure/configuration/logstash/azure.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

input{
<%=
deprecation_logger.deprecated("The Azure module has been deprecated in favor of the Beats Azure module, and may be removed in a future release. Learn more about the Beats Azure module at https://www.elastic.co/guide/en/beats/filebeat/master/filebeat-module-azure.html")
deprecation_logger.deprecated("The Azure module has been deprecated in favor of the Beats Azure module, and will be removed in version 9. Learn more about the Beats Azure module at https://www.elastic.co/guide/en/beats/filebeat/master/filebeat-module-azure.html")
require 'azure_module_config_generator'
config_generator = LogStash::Azure::ConfigGenerator.new
config_generator.generate_input(@settings)
Expand Down

0 comments on commit 4677cb2

Please sign in to comment.