All Apps and Add-ons

SA-Eventgen app: "seqfile" not define error

nicopelletier39
Explorer

Hello, 

I'm trying to set up the SA-eventgen app and doing the simple tutorial with sample files but got this fatal error
"function \"seqfile\" not defined" and this intermediate "error parsing token newline: {{$templateData}}"  :

nicopelletier39_1-1681414258720.png

And I don't know why... 
Here is my eventgen located in misp42splunk app

 

sudo cat ./etc/apps/misp42splunk/default/eventgen.conf
[film.json]                                                                                                                                                                                  index = main                                                                                                                                                                                 count = 100                                                                                                                                                                                  mode = sample                                                                                                                                                                                end = 1                                                                                                                                                                                      autotimestamp = true                                                                                                                                                                         sourcetype = json                                                                                                                                                                            source = /opt/splunk/sources/film.json                                                                                                                                                                                                                                                                                                                                                    token.0.token = "FILM_ID":(\d+)                                                                                                                                                              token.0.replacementType = integerid                                                                                                                                                          token.0.replacement = 100                                                                                                                                                                                                                                                                                                                                                                 token.1.token = "REGION_ID":(\d+)                                                                                                                                                            token.1.replacementType = seqfile                                                                                                                                                            token.1.replacement = /opt/splunk/etc/apps/sample_conf/samples/count10.txt

 

 

 

 




Labels (1)
0 Karma
1 Solution

nicopelletier39
Explorer

Hello @b0b05c3 ,

Thanks for letting me know that,

You right it turns out that the tutorial and config in the documentation is not up to date. I'm going to update them according to what we see in the `./splunk_eventgen/splunk_app/README/eventgen.conf.spec`.

View solution in original post

0 Karma

b0b05c3
Engager

Im facing a similar issue while following the tutorial mentioned by Splunk.

0 Karma

nicopelletier39
Explorer

thanks for telling me i know that someone else got similar issue with json error parsing as well

0 Karma

b0b05c3
Engager

Hey,
I kept exploring the documentation and discovered that token replacement type no longer has a seqfile value defined. So if you replace 'seqfile' with 'file' in your conf file, it should start working.

nicopelletier39
Explorer

Hello @b0b05c3 ,

Thanks for letting me know that,

You right it turns out that the tutorial and config in the documentation is not up to date. I'm going to update them according to what we see in the `./splunk_eventgen/splunk_app/README/eventgen.conf.spec`.

0 Karma
Get Updates on the Splunk Community!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...