The typical approach to such case is to use streamstats to find last occurrence of different state than it is at given moment (using reset_on_change=t or reset_before/reset_after). That's probably y...
See more...
The typical approach to such case is to use streamstats to find last occurrence of different state than it is at given moment (using reset_on_change=t or reset_before/reset_after). That's probably your only reasonable approach since you need to "carry over" information from some events into other ones and this (along with the autoregress) is the command to do so.
Error was being caused by the OpenTelemetry Collector service, which is separate from the Splunk UF service. I stopped the service and errors are no longer being logged in Event Viewer.
While this is possible, there are a lot of b's in the real search and I am looking for a way to not have to write those out individually. - I would like a negative formulation if possible
Hi @Roy_9, if the field name in the lookup is "service team", try this: | tstats count latest(_time) AS latest WHERE index=_internal BY host
| append [
| inputlookup 123.csv
| rename title ...
See more...
Hi @Roy_9, if the field name in the lookup is "service team", try this: | tstats count latest(_time) AS latest WHERE index=_internal BY host
| append [
| inputlookup 123.csv
| rename title AS host
| eval count=0
| fields host "service team" count
]
| stats
sum(count) AS total
value(latest) AS latest
values("service team") AS "service team"
BY host
| where now()-latest>900 OR total=0
| eval
latest=strftime(latest,"%Y-%m-%d %H:%M:%S"),
status=if(total=0,"Never sent","Last event: ".latest)
| table host "service team" status If the field name in the lookup is different, correct my search. Ciao. Giuseppe
@meshorer when you join 2 or more lines to a block it creates a join that by default will wait for all connected blocks to complete. If you open the code block settings and expand the Advanced dr...
See more...
@meshorer when you join 2 or more lines to a block it creates a join that by default will wait for all connected blocks to complete. If you open the code block settings and expand the Advanced drop-down you should see some tick boxes. As long as the 2 block prior could only ever go down 1 route then you can untick all boxes and it should work.
Basically I have a search with a lot of fields, similar to this example: | makeresults
| eval aa1=1, aa2=2, aa1x=3, aa2x=4, b=5 from this I would basically like to keep everything excep...
See more...
Basically I have a search with a lot of fields, similar to this example: | makeresults
| eval aa1=1, aa2=2, aa1x=3, aa2x=4, b=5 from this I would basically like to keep everything except for aa* that does not contain the suffix x. I tried | fields -aa* aa*x as well as similar approaches, but they do not work: 1) either deleting all aa* (including aa*x) 2) not keeping b or 3)not deleting aa* at all. I would know how to solve this with regex: "aa.+(?<!x)$" as can be seen here: https://regex101.com/r/JfVHCJ/latest Is there any SPL equivalent?
Hello, How to calculate distinct count with condition? How to calculate unique vuln that has score >0, group by ip? Before calculation ip vuln score 1.1.1.1 vuln1 0 1.1.1.1 vu...
See more...
Hello, How to calculate distinct count with condition? How to calculate unique vuln that has score >0, group by ip? Before calculation ip vuln score 1.1.1.1 vuln1 0 1.1.1.1 vuln1 0 1.1.1.1 vuln2 3 1.1.1.1 vuln2 3 1.1.1.1 vuln2 3 1.1.1.1 vuln3 7 1.1.1.1 vuln3 7 2.2.2.2 vuln1 0 2.2.2.2 vuln4 0 2.2.2.2 vuln5 5 2.2.2.2 vuln5 5 After calculation ip dc(vuln) dc(vuln) score > 0 1.1.1.1 3 2 2.2.2.2 3 1 Thank you so much
@gcusello field name is service team and value is Network. I didn't get this part. count is at the end of the previous row, not in a new row. Can you please send me the updated search, that wou...
See more...
@gcusello field name is service team and value is Network. I didn't get this part. count is at the end of the previous row, not in a new row. Can you please send me the updated search, that would be highly helpful. Thanks in advance.
Hi @Roy_9 , count is at the end of the previous row, not in a new row. About Team, what's ne field name that you have in the lookup? add it instead Team in the search. Ciao. Giuseppe
Its the second one, but no streamstats solution provided will work that I have seen. lets say I have between 40 and 1000 events, any ratio can be good vs bad, with no correlation on how often each g...
See more...
Its the second one, but no streamstats solution provided will work that I have seen. lets say I have between 40 and 1000 events, any ratio can be good vs bad, with no correlation on how often each good vs bad occurs on a time basis and no set amount that occurs before a transition happens for each host. That is the problem I have not seen anyone be able to solve.
Thank you, @phanTom a code block to check it and then outputs the relevant parameter did it. but now I have another problem- when I try to connect two blocks that are separated with a decision bl...
See more...
Thank you, @phanTom a code block to check it and then outputs the relevant parameter did it. but now I have another problem- when I try to connect two blocks that are separated with a decision block, to the same prompt block or decision block, it doesn’t work. for one case it goes well, but for the second case the debug shows “join_ <block name> called”, but the playbook ends there. Why does it happen?
@gcusello I am getting the error Unknown search command 'count' and also if i want to obtain the values for only particular team, let' s say "Network team", where can i add this?