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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...