Connectors Questions
cancel

Extra Processor in Submessage

Accepted Solution
Answer

Extra Processor in Submessage

Is it possible to call extra processors from submessages?  I cannot find the documentation on how this is done, assuming that it is possible.  I need to create submessages and then for some of them I will need to call a keyvalue extra processor.

Accepted Solutions (1)

Accepted Solutions (1)

ianfitz
Honored Contributor.
Solution

Hi there.

No you dont call them from within submessages. You can call them within the same parser.

If necessary you can use the submessage to assign a value to a field, then use that field to determine if you run the extraprocessor.

Example:

extraprocessor.count=1

extraprocessor[0].type=keyvalue

extraprocessor[0].filename=somedir/basename

extraprocessor[0].field=event.message    (whichever field you need to pass in to be examined by the keyvalue parser)

extraprocessor[0].overrideeventmappings=true

extraprocessor[0].clearfieldafterparsing=true

extraprocessor[0].flexagent=true

extraprocessor[0].conditionfield=event.flexString1

extraprocessor[0].conditionvalues=string1,string2,whateverelse

 

So in this case you can use your submessage to write to flexString1.

In your extraprocessor, you could then clear out flexString1 again.

 

Just an idea.

Cheers!

Answers (0)