Skip to content

Commit

Permalink
app_id.srcType.yml to user_settings
Browse files Browse the repository at this point in the history
  • Loading branch information
robcowart committed Aug 10, 2020
1 parent 7f9c8cb commit d0555c7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ filter {

if [netflow][app_id] != "0..0" {
translate {
dictionary_path => "${ELASTIFLOW_DICT_PATH:/etc/logstash/elastiflow/dictionaries}/app_id.srctype.yml"
dictionary_path => "${ELASTIFLOW_USER_SETTINGS_PATH:/etc/logstash/elastiflow/user_settings}/app_id.srctype.yml"
field => "[host][ip]"
destination => "[@metadata][appid_srctype]"
fallback => "${ELASTIFLOW_DEFAULT_APPID_SRCTYPE:__UNKNOWN}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ filter {

if [ipfix][applicationId] != "0..0" {
translate {
dictionary_path => "${ELASTIFLOW_DICT_PATH:/etc/logstash/elastiflow/dictionaries}/app_id.srctype.yml"
dictionary_path => "${ELASTIFLOW_USER_SETTINGS_PATH:/etc/logstash/elastiflow/user_settings}/app_id.srctype.yml"
field => "[host][ip]"
destination => "[@metadata][appid_srctype]"
fallback => "${ELASTIFLOW_DEFAULT_APPID_SRCTYPE:__UNKNOWN}"
Expand Down
3 changes: 1 addition & 2 deletions profile.d/elastiflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#------------------------------------------------------------------------------

# ElastiFlow global configuration
export ELASTIFLOW_AGENT_ID=elastiflow
export ELASTIFLOW_DICT_PATH=/etc/logstash/elastiflow/dictionaries
export ELASTIFLOW_USER_SETTINGS_PATH=/etc/logstash/elastiflow/user_settings
export ELASTIFLOW_DEFINITION_PATH=/etc/logstash/elastiflow/definitions
Expand All @@ -29,7 +30,6 @@ export ELASTIFLOW_POPULATE_LOGS=true
export ELASTIFLOW_KEEP_ORIG_DATA=true
export ELASTIFLOW_DEFAULT_APPID_SRCTYPE=__UNKNOWN


# Name resolution option
export ELASTIFLOW_RESOLVE_IP2HOST=false
export ELASTIFLOW_NAMESERVER=127.0.0.1
Expand Down Expand Up @@ -68,7 +68,6 @@ export ELASTIFLOW_NETFLOW_UDP_WORKERS=4
export ELASTIFLOW_NETFLOW_UDP_QUEUE_SIZE=4096
export ELASTIFLOW_NETFLOW_UDP_RCV_BUFF=33554432
# Netflow timestamp options
export ELASTIFLOW_NETFLOW_LASTSW_TIMESTAMP=false
export ELASTIFLOW_NETFLOW_TZ=UTC


Expand Down

0 comments on commit d0555c7

Please sign in to comment.