emit deprecation entry for netflow and azure modules

point users towards the beats modules instead
This commit is contained in:
Joao Duarte 2020-05-28 16:40:15 +01:00 committed by João Duarte
parent c5b6a853d6
commit aeb46de6cc
3 changed files with 3 additions and 0 deletions

View file

@ -19,6 +19,7 @@ require_relative "file_reader"
require "logstash/settings"
module LogStash module Modules class LogStashConfig
include LogStash::Util::Loggable
# We name it `modul` here because `module` has meaning in Ruby.
def initialize(modul, settings)
@directory = ::File.join(modul.directory, "logstash")

View file

@ -15,6 +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") %>
input {
udp {
type => "netflow"

View file

@ -4,6 +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")
require 'azure_module_config_generator'
config_generator = LogStash::Azure::ConfigGenerator.new
config_generator.generate_input(@settings)