All Apps and Add-ons

Splunk_TA_nix startup typo Error

hartfoml
Motivator

Anyone else get this typo error with the eventgen.conf

`Checking: $splunk/etc/apps/Splunk_TA_nix/default/eventgen.conf
        Possible typo in stanza [sample\.(openPortsEnhanced|passwd|service|update|selinuxChecker|sshdChecker|uptime|version|vsftpdChecker)\.(unix|linux|osx|solaris)] in $splunk/etc/apps/Splunk_TA_nix/default/eventgen.conf, line 185: randomizeEvents  =  true`
0 Karma
1 Solution

araitz
Splunk Employee
Splunk Employee

Yes, this is a problem with the spec file that ships with the product for eventgen.conf ($SPLUNK_HOME/etc/system/README/eventgen.conf.spec). It isn't an updated version and doesn't understand the randomizeEvents parameter.

You can:

1) comment out all the randomizeEvents lines in eventgen.conf of the *nix TA (recommended)
2) update eventgen.conf.spec with the randomizeEvents specification (not recommended)

We will certainly try to fix this in a future version of the *nix TA.

View solution in original post

0 Karma

araitz
Splunk Employee
Splunk Employee

Yes, this is a problem with the spec file that ships with the product for eventgen.conf ($SPLUNK_HOME/etc/system/README/eventgen.conf.spec). It isn't an updated version and doesn't understand the randomizeEvents parameter.

You can:

1) comment out all the randomizeEvents lines in eventgen.conf of the *nix TA (recommended)
2) update eventgen.conf.spec with the randomizeEvents specification (not recommended)

We will certainly try to fix this in a future version of the *nix TA.

0 Karma

sowings
Splunk Employee
Splunk Employee

I can verify that a stub .spec file can be created in an app-specific README directory to silence these warnings. Incidentally, they come from "btool check", and this is one way to validate that you've got the syntax of your homegrown .spec file correct.

Btool check is silent? The configs check out!

0 Karma

araitz
Splunk Employee
Splunk Employee

The spec files lives in README rather than default/local. I think (but am not sure) that you could create a Splunk_TA_nix/README/eventgen.conf.spec that would allow you to provide the missing parameters, but it seems like commenting out the settings themselves is easier.

sloshburch
Splunk Employee
Splunk Employee

Is it possible to edit a spec file that we keep in our system/local until this is resolved?

0 Karma

araitz
Splunk Employee
Splunk Employee

In general, it isn't recommended to edit files in the system directory. More specifically, the next time you upgrade Splunk, the change will be overwritten.

0 Karma

hartfoml
Motivator

Can you comment on why I should not update the .spec file?

0 Karma

hartfoml
Motivator

thanks for the help. this works

0 Karma

sloshburch
Splunk Employee
Splunk Employee

I also see this on 5.0.2. Was this a bug with 5.0.2?

0 Karma

hartfoml
Motivator

I am on 4.3.1

0 Karma

dbylertbg
Path Finder

I am seeing this with Splunk 5.0.2 and Splunk_TA_nix 4.7.0.

0 Karma

araitz
Splunk Employee
Splunk Employee

What version of Splunk are you on? I haven't seen this on 5.0.x.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...