[ https://issues.apache.org/jira/browse/METRON-505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15580893#comment-15580893 ]
ASF GitHub Bot commented on METRON-505: --------------------------------------- GitHub user mmiklavc opened a pull request: https://github.com/apache/incubator-metron/pull/312 METRON-505: Add environment variable and system property functions to the Stellar language Tested in quick-dev from the Stellar REPL. Build the platform, as normal. The new functions will get picked up automatically on the classpath via the annotations. **Examples:** ``` SYSTEM_ENV_GET for exposing environment variables [root@node1 bin]# export MIKE_VAR="blah blah blah" [root@node1 bin]# echo $MIKE_VAR blah blah blah [Stellar]>>> mikevar := SYSTEM_ENV_GET('MIKE_VAR') [Stellar]>>> mikevar blah blah blah SYSTEM_PROPERTY_GET for exposing system properties [Stellar]>>> prop := SYSTEM_PROPERTY_GET( 'os.name' ) [Stellar]>>> prop Linux [Stellar]>>> prop := SYSTEM_PROPERTY_GET( 'user.name' ) [Stellar]>>> prop root ``` You can merge this pull request into a Git repository by running: $ git pull https://github.com/mmiklavc/incubator-metron add-sysfuncs-stellar Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-metron/pull/312.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #312 ---- commit 9ce57ee69e852c8f4816aa5822eb6b21ab9bbdca Author: Michael Miklavcic <michael.miklav...@gmail.com> Date: 2016-10-17T01:26:47Z METRON-505: Add environment variable and system property functions to the Stellar language ---- > Add environment variable and system property functions to the Stellar language > ------------------------------------------------------------------------------ > > Key: METRON-505 > URL: https://issues.apache.org/jira/browse/METRON-505 > Project: Metron > Issue Type: Improvement > Reporter: Michael Miklavcic > Assignee: Michael Miklavcic > > Stellar and the Stellar REPL allow you assign variables and compose functions > for use in parsing, enrichment, and threat triage. There is currently no > mechanism for extracting values from environment variables and Java system > properties. This Jira tracks adding functions for exposing this functionality > in Stellar. -- This message was sent by Atlassian JIRA (v6.3.4#6332)