Member since
10-27-2016
81
Posts
10
Kudos Received
0
Solutions
03-22-2018
09:07 AM
@nallen thank you very much for the quick response. I was able to figure out the issue of adding profile to result and implemented!
... View more
03-16-2018
10:40 AM
Hi @asubramanian @nallen do you guys please look the issue I am facing and help me!
... View more
03-15-2018
03:06 PM
I am trying implement POC with usecase as below I have windows log data being loaded to Indexing topic. I want to define a profiler which checks for failed logons in 15 minutes time frame and generate alerts in metron UI when failed logons count goes beyond threshold level. For that I just started trying to define logon failed count profiler as below {
"profiles": [
{
"profile": "demo_iplogon_failed",
"foreach": "ip_address",
"onlyif": "source.type == 'demo_windowsnxlog' and event_id == 4625",
"init": {
"count": "0"
},
"update": {
"count": "count + 1"
},
"result": {
"triage": {
"logon_failed_count": "count"
}
}
}
]
}
But when I try to run the profiler, it is giving me an exception as below [!] Assignment expression failed
java.lang.IllegalArgumentException: Assignment expression failed
at org.apache.metron.stellar.common.shell.StellarResult.error(StellarResult.java:115)
at org.apache.metron.stellar.common.shell.specials.AssignmentCommand.execute(AssignmentCommand.java:82)
at org.apache.metron.stellar.common.shell.DefaultStellarShellExecutor.execute(DefaultStellarShellExecutor.java:252)
at org.apache.metron.stellar.common.shell.cli.StellarShell.execute(StellarShell.java:357)
at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:53)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748) Can someone help me to figure out what is the problem in above profiler configuration? Also, is there any other better way to implement my usecase with metron?
... View more
Labels:
- Labels:
-
Apache Metron
01-30-2018
12:41 PM
I am trying to convert the epoch in milliseconds to TimeStamp of specific timezone. I tried using "format" of nifi expression language as below in updateAttribute processor ${closed_epoch:format("yyyy", "GMT")} But updateAttribute processor is showing error saying "unexpected token ','. Is it the bug with Nifi expression language? and what is the timezone that Nifi uses by default when I try ${closed_epoch:format("yyyy")}? Is there any other way to convert epoch to timestamp of specific timezone ?
... View more
Labels:
- Labels:
-
Apache NiFi
01-25-2018
09:10 AM
1 Kudo
It works, Thanks alot @Shu
... View more
01-24-2018
06:35 PM
1 Kudo
I am trying to replace the content in the flowfile using replaceText processor. If the attribute is "myattr" and I replace the content of the flowfile using replaceText processor with ${myattr}. I am seeing the below results if myattr is "$$this is test$$", then the content of flowfile is replaced as "\$this is test\$" if myttr is "\$$$this is test$$", then the content of flowfile is replaced as "\$\$this is test\$" May I know how can I overcome the issue of '\'
... View more
Labels:
- Labels:
-
Apache NiFi
01-24-2018
06:24 PM
it seems like replaceText processor is replacing '$$$$$*' in the content to '\$' while replacing the flow file content! seems like actual issue is I have an attribute namely "myattr" when myattr is "$$This is test$$", if I replace the flowfile content with myattr, the content in the flowfile is "\$this is test\$"
... View more
01-24-2018
06:06 PM
what might be the reason for the extra character '\' ?
... View more
01-24-2018
02:42 PM
1 Kudo
I have requirement where I need to append and prepend the attribute with "$$$". how ever, Nifi expression language is appending or prepending with "\$" For example: if attribute named "myattr" value is "This is Test" when I do ${myattr:prepend('$$$'):append('$$$')} I am expecting "$$$This is Test$$$" but the output is "\$This is Test\$" Is there any way to append or prepend the attribute with "$$$"
... View more
Labels:
- Labels:
-
Apache NiFi
-
Apache Pig
08-24-2017
03:44 PM
@Geoffrey Shelton Okot Yes, that makes sense. But I am unable to figureout where can I configure those parameters in ConsumeKafka_0_10 processors
... View more