Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Commit

Permalink
eventgen config review
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhemmarchand committed Aug 15, 2017
1 parent de60287 commit c35c9c7
Show file tree
Hide file tree
Showing 20 changed files with 11,453 additions and 281 deletions.
43 changes: 43 additions & 0 deletions TA-nmon/default/eventgen.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# eventgen.conf

# The eventgen samples come from real system running in the IBM Power development plateform (PPD)
# These are key value invents from the TA-nmon-hec

# Deploy the Splunk eventgen from https://github.com/splunk/eventgen under $SPLUNK_HOME/etc/apps/SA-Eventgen
# Create an index called "nmon" and restart Splunk

[nmon_performance_sample]
count = 100
index = nmon
sourcetype = nmon_data:fromhttp
source = perfdata:http
interval = 10
earliest = -1m
latest = now

## Replace timestamp
token.0.token = timestamp=\"(\d*)\"
token.0.replacementType = timestamp
token.0.replacement = %s

token.1.token = ZZZZ=\"(\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2})"
token.1.replacementType = timestamp
token.1.replacement = %Y-%m-%d %H:%M:%S

[nmon_config_sample]
count = 4
index = nmon
sourcetype = nmon_config:fromhttp
source = configdata:http
breaker = timestamp=\"([0-9]*)\"
# it does not work without:
bundlelines = true

## Replace timestamp
token.0.token = timestamp=\"([0-9]*)\"
token.0.replacementType = timestamp
token.0.replacement = %s

token.1.token = date=\"(\d{2}-\w{3}-\d{4}:\d{2}:\d{2}:\d{2})"
token.1.replacementType = timestamp
token.1.replacement = %d-%b-%Y:%H:%M:%S
266 changes: 0 additions & 266 deletions TA-nmon/default/eventgen.conf.spec

This file was deleted.

15 changes: 0 additions & 15 deletions TA-nmon/default/inputs.conf
Original file line number Diff line number Diff line change
Expand Up @@ -134,18 +134,3 @@ index = nmon
interval = 14400
source = nmon_cleaner
sourcetype = nmon_clean

###########################################
# SA-Eventgen
###########################################

# All these stanza are related to Eventgen configuration, for App testing purposes, Evengen will generate various sample data
# These settings can be safety ignored in Production systems as they will never affect anything as long as Eventgen inputs are not activated

[batch://$SPLUNK_HOME/var/log/nmon/eventgen/*sample.csv]

disabled = true
move_policy = sinkhole
crcSalt = <SOURCE>
index = nmon
sourcetype = nmon_data
Binary file removed TA-nmon/samples/AIX_CPU_ALL_sample.gz
Binary file not shown.
Binary file removed TA-nmon/samples/AIX_LPAR_sample.gz
Binary file not shown.
Binary file removed TA-nmon/samples/AIX_MEM_sample.gz
Binary file not shown.
Binary file removed TA-nmon/samples/DISKXFER_sample.gz
Binary file not shown.
Binary file removed TA-nmon/samples/Linux_CPU_ALL_sample.gz
Binary file not shown.
Binary file removed TA-nmon/samples/Linux_MEM_sample.gz
Binary file not shown.
Binary file removed TA-nmon/samples/Linux_TOP_sample.gz
Binary file not shown.
Binary file removed TA-nmon/samples/Solaris_CPU_ALL_sample.gz
Binary file not shown.
Binary file removed TA-nmon/samples/Solaris_MEM_sample.gz
Binary file not shown.
Binary file removed TA-nmon/samples/Solaris_TOP_sample.gz
Binary file not shown.
Binary file removed TA-nmon/samples/Solaris_WLM_sample.gz
Binary file not shown.
Binary file removed TA-nmon/samples/collect_sample.gz
Binary file not shown.
Binary file removed TA-nmon/samples/config_sample.gz
Binary file not shown.

0 comments on commit c35c9c7

Please sign in to comment.