On Fri, Feb 12, 2016 at 2:23 AM, Ian Winstanley
wrote:
> To refer to a class variable you need to put the class name first for
> example MyClass.xslt
>
That indeed did the trick, thanks Ian.
regards, Richard
--
*Java is like Alzheimers; it starts slow and eventually, it takes away all
of you
On 11/02/2016 20:28, richard kappler wrote:
Trying to optimize the modular input we wrote for Splunk, the basic
structure (dictated by Splunk) is the entire script is a class with
numerous methods within. The modular input reads a tcp stream, starts a new
thread for each source, reads the message
>Thanks for the reply Martin, and in this instance I cannot post the
>actual code (company rules).
That's often the case. I think most of us understand that you may
not be able to post the original code.
>What I can do is say that with the xslt variable defined within the
>formatter method,
On 11/02/16 21:20, Peter Otten wrote:
>> defined within the formatter method, everything works, but when I pull it
>> out and put it in the upper level of the class, it gives me a traceback
>> that says the global variable xslt is not defined. Does that help?
>
> You need to qualify the class att
richard kappler wrote:
> Thanks for the reply Martin, and in this instance I cannot post the actual
> code (company rules). What I can do is say that with the xslt variable
> defined within the formatter method, everything works, but when I pull it
> out and put it in the upper level of the class,
Thanks for the reply Martin, and in this instance I cannot post the actual
code (company rules). What I can do is say that with the xslt variable
defined within the formatter method, everything works, but when I pull it
out and put it in the upper level of the class, it gives me a traceback
that sa
Hi there again Richard,
[snipped a bit of stuff]
>The method that actually formats the messages opens the xslt file,
>then uses it to format the message. Clever boy that I am, I figured
>it would be better to open the xslt file once, rather than once per
>message, so I moved the line
>
>xslt
Trying to optimize the modular input we wrote for Splunk, the basic
structure (dictated by Splunk) is the entire script is a class with
numerous methods within. The modular input reads a tcp stream, starts a new
thread for each source, reads the messages from that source into a buffer,
checks for s