Getting Data In

Indexing issues

Ant1D
Motivator

Hey,

I have a 16-core windows 2003 server running Splunk v4.3.1 which is used for both searching and indexing. On this particular server, there have been a couple occasions recently during daily peak periods of indexing where the UI has slowed down with the splunk daemon not being reachable. During these periods, there is lots of data coming into Splunk via UDP.

Does anyone have any tips of what can be done to ensure that the Splunk UI can still be used in these peak indexing periods? (that does not involve introducing more hardware)

I've noticed that during these busy periods, the server only appears to be making decent use of 2/3 cores of the available 16. Is this normal? If not, can this be changed?

Any ways in which we can improve indexing throughput/efficiency would be very useful. Thanks in advance for your help.

0 Karma
1 Solution

bmacias84
Champion

Ok, I have to ask are you using SOS (Splunk On Splunk) and Splunk Deployment Monitor. These to apps will help diagnose issues. I am not sure how familiar you are with Splunk performance requirements and I don’t know you environment.

Here are something’s I would look into:

  • How many concurrent search are being performed, by users and saved?
  • How many searches do you have per dashboard? Consider using post process searches or rewriting your searches to be more efficient. Evaluate your log running searches using the search inspector.
  • How much data are you indexing? Search and Index will eat up your IOPs.
  • Do you have large events? Those will slow down Splunk indexing.

Splunk requires the dedication of one CPU core for every user that logs into the system. Each search the user runs takes up an additional CPU core for the duration of the search. CPU usage does not necessarily show performance issues as you CPU’s could be occupied, but fully utilizing the core. If all core are occupied all activates will become slow as processing time is being split.

To address your issue of data loss consider an intermediate UF or HF and possibility of using indexer acknowledgement. If you are receiving large amounts of data streaming data you may want to increase your input and output queues to handle the disruption in Indexer response. Indexer acknowledgement does have performance implications on the Forwarders. This should help with in-flight data loss. The intermediate forwarder will act as a buffer for streamed data.

Additional Reading:

Useforwarderstogetyourdata

Forwarderdeploymenttopologies

HowconcurrentusersaffectSplunkperformance

I hope this helps or gets you started. If answers to help don’t forget to accept and/or thumbs up. Cheers.

View solution in original post

Drainy
Champion

I suspect it may be that the IO on the system is becoming overloaded and causing Splunkd to become unresponsive. What the current average queue sizes your system is experiencing and the peak CPU load over busy periods?

bmacias84
Champion

Ok, I have to ask are you using SOS (Splunk On Splunk) and Splunk Deployment Monitor. These to apps will help diagnose issues. I am not sure how familiar you are with Splunk performance requirements and I don’t know you environment.

Here are something’s I would look into:

  • How many concurrent search are being performed, by users and saved?
  • How many searches do you have per dashboard? Consider using post process searches or rewriting your searches to be more efficient. Evaluate your log running searches using the search inspector.
  • How much data are you indexing? Search and Index will eat up your IOPs.
  • Do you have large events? Those will slow down Splunk indexing.

Splunk requires the dedication of one CPU core for every user that logs into the system. Each search the user runs takes up an additional CPU core for the duration of the search. CPU usage does not necessarily show performance issues as you CPU’s could be occupied, but fully utilizing the core. If all core are occupied all activates will become slow as processing time is being split.

To address your issue of data loss consider an intermediate UF or HF and possibility of using indexer acknowledgement. If you are receiving large amounts of data streaming data you may want to increase your input and output queues to handle the disruption in Indexer response. Indexer acknowledgement does have performance implications on the Forwarders. This should help with in-flight data loss. The intermediate forwarder will act as a buffer for streamed data.

Additional Reading:

Useforwarderstogetyourdata

Forwarderdeploymenttopologies

HowconcurrentusersaffectSplunkperformance

I hope this helps or gets you started. If answers to help don’t forget to accept and/or thumbs up. Cheers.

Ant1D
Motivator

It's a combination of issues. The size of some of the events, we were receiving high numbers of events containing stack traces. Also, there were a high number of UDP in-connections during peak periods which was causing the server to slow down.

0 Karma

bmacias84
Champion

@Ant1D, thanks for accepting my answer. Do mind sharing what was this cause and resolution?

0 Karma

bmacias84
Champion

I have the same suspicions as @Drainy, use your metric.log file to determine your queue size. I would recommend installing SOS and Deployment monitor for you Splunk environment. In addition I would also consider strictly defining your sources in your props.conf using Linebreaking and/or Timestamp extraction configuration in particular MAX_TIMESTAMP_LOOKAHEAD which can improve indexing performance. As a note event size is determined by number of bytes.

Ant1D
Motivator

I am not using any of those apps. I have a decent understanding of Splunk performance. Just looking for some tips on how I can stop the described performance issue from reoccurring. The events coming in are not large (e.g. roughly 10 field="value" pairs in each event). Most dashboards have 1 or 2 searches. Concurrent searches are also minimal.

0 Karma

Ant1D
Motivator

Thanks for your comments. It's a 2.27GHz 16-core server as described above with 24GB RAM. It's indexing up to 7GB a day. The bulk of this indexing is coming from a UDP port and occasionally in busy periods (when large amounts of upcoming data is coming via this port from numerous hosts) Splunk slows down and the UI can become unavailable. I would have thought that this server would be able to handle that.

MHibbin
Influencer

perhaps for more reasons than one... would it not be a better solution to log network traffic to file first? - if that is possible, e.g. if you are using UDP514, using a syslog server to create local logs and handle the network traffic, then Splunk can just read the file... probably quicker.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...