LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  How to get the lavastorm server name and user name?

    Employee
    Posted 09-04-2017 02:39

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: rebeccanew

    hi, I am using the lavastorm server version. And I am going to produce a log file from a graph to log the server name and user name. I don't know how to get the server name and the user name of the current graph. Can anybody help? Thanks.


  • 2.  RE: How to get the lavastorm server name and user name?

    Employee
    Posted 09-14-2017 08:28

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: awilliams1024

    Hi, you could try the following. Copy the code and paste it onto the canvas:

    node:Clock_2
    bretype:core::Static Data
    editor:Label=Clock
    editor:sortkey=59ba956572d541c0_2
    output:@40fe6c55598828e5/=
    prop:StaticData=<<EOX
    Clock:int
    1
    EOX
    editor:XY=200,100
    end:Clock_2
    
    node:Filter_4
    bretype:core::Filter
    editor:sortkey=59ba958b343c340a_2
    input:@40fd2c74167f1ca2/=Clock_2.40fe6c55598828e5
    output:@40fd2c7420761db6/=
    prop:Script=<<EOX
    MachineName = property("ls.brain.machinename")
    Username = property("graph.username") 
    
    emit  MachineName, Username
    
    EOX
    editor:XY=340,100
    end:Filter_4

    Regards,
    Adrian