Monitoring Splunk

Measure incoming network traffic on heavy forwarders

splunkreal
Motivator

Hello, is this query valid to check incoming network traffic to heavyforwarders?

index=_internal source=*metrics.log* group=tcpin_connections (host=s*HF*) | eval mb=floor(kb/1024) | timechart sum(mb) as mb span=5min useother=f usenull=f by host

Thanks.

* If this helps, please upvote or accept solution if it solved *
0 Karma

livehybrid
SplunkTrust
SplunkTrust

Hi @splunkreal 

You want to use 'hostname' not host in that search:

index=_internal source=*metrics.log* group=tcpin_connections (hostname=s*HF*) 
| eval mb=(kb/1024) 
| timechart sum(mb) as mb span=5min useother=f usenull=f by hostname

Using wildcards within a value isnt recommended but wont stop your search running.

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

splunkreal
Motivator

Hi @livehybrid @PickleRick  doesn't seem to work with HEC port (8088)

* If this helps, please upvote or accept solution if it solved *
0 Karma

PickleRick
SplunkTrust
SplunkTrust

Yes. HEC data should be IIRC listed in another group (http_connections?)

0 Karma

PickleRick
SplunkTrust
SplunkTrust

Actually, a wildcard within a searched term can lead to wrong results. Depends whether the term contains breakers.

0 Karma
Get Updates on the Splunk Community!

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...

Auto-Injector for Everything Else: Making OpenTelemetry Truly Universal

You might have seen Splunk’s recent announcement about donating the OpenTelemetry Injector to the ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...