Splunk® Enterprise

Getting Data In

Splunk Enterprise version 9.0 will no longer be supported as of June 14, 2024. See the Splunk Software Support Policy for details. For information about upgrading to a supported version, see How to upgrade Splunk Enterprise.

Monitor Windows printer information

With the Splunk platform, you can monitor statistics about all of the printers and drivers, print jobs, and printer ports on your local Windows machine. You can collect the following print system information:

  • Printer. Information on the print subsystem, such as the status of installed printers and when printers get added or deleted.
  • Job. Information on print jobs, including who printed what, details on the jobs, and the status of existing jobs.
  • Driver. Information on the print driver subsystem, including information on existing print drivers and when a print driver gets added or removed.
  • Port. Information on printer ports installed on the system and when they get added or removed.

Both full instances of the Splunk platform and universal forwarders support local collection of printer subsystem information. If you use Splunk Cloud Platform and want to monitor printer subsystem information, use the universal forwarder to ingest the information and forward it to your Splunk Cloud Platform deployment.

The printer monitor input runs as a process called splunk-winprintmon.exe. This process runs once for every input you define at the interval you specify in the input. You can configure printer subsystem monitoring using Splunk Web or the inputs.conf configuration file.

Reasons to monitor printer information

Windows printer monitoring gives you detailed information about your Windows printer subsystem. You can monitor any changes to the system, such as installation and removal of printers, print drivers, and ports, the starting and completion of print jobs, and learn who printed what and when. When a printer failure occurs, you can use print monitoring information as a first step into the forensic process. With the Splunk search processing language, you can give your team at-a-glance statistics on all printers in your Windows network.

Requirements

Meet the following requirements before you monitor host information:

  • The Splunk platform must run on Windows. See Install on Windows in the Installation Manual.
  • The Splunk platform must run as the Local System user to read all local host information.

Security and remote access considerations

The Splunk platform must run as the Local System user to collect Windows print subsystem information by default.

Use a universal forwarder to send printer information from remote machines to an indexer. If you choose to install forwarders on your remote machines to collect printer subsystem data, then you can install the forwarder as the Local System user on these machines. The Local System user has access to all data on the local machine, but not on remote machines.

If you run the Splunk platform as a user other than the Local System user, then that user must have local Administrator rights to the machine and other permissions as detailed in Choose the Windows user the Splunk platform should run as in the Installation Manual.

Use Splunk Web to configure printer information

Follow these high-level steps to configure printer information on Splunk Web:

  1. Go to the Add Data page.
  2. Select the input source.
  3. Specify input settings.
  4. Review your choices.

Go to the Add Data page

Choose one of the following methods to get to the Add Data page.

To add data from the Settings drop-down list, follow these steps:

  1. Click Settings.
  2. Click Data Inputs.
  3. Click Local Windows print monitoring.
  4. Click New to add an input.

To add data from the Splunk Web home page, follow these steps:

  1. Click Add Data.
  2. Click Monitor to monitor print information from the local Windows machine.
  3. In the left pane, locate and select Local Windows print monitoring.

Select the input source

  1. In the Collection Name field, enter a unique and memorable name for this input.
  2. In Event Types, locate the print monitoring event types you want this input to monitor.
  3. Click each type you want to monitor once.
    The Splunk platform moves the type from the Available type(s) window to the Selected type(s) window.
  4. To deselect a type, click its name in the Selected type(s) window.
    The Splunk platform moves the counter from the Selected type(s) window to the Available type(s) window.
  5. (Optional) To select or deselect all of the types, click Add all or Remove all.

    Selecting all of the types can result in the indexing of a lot of data, possibly more than your license allows.

  6. In the Baseline control, click Yes to run the input as soon as it starts and no further. Click No to run the input at the interval specified in the Interval (in minutes) field.
  7. Click Next.

Specify input settings

You can specify application context, default host value, and index on the Input Settings page. All of these parameters are optional.

  1. Select the appropriate Application context for this input.
  2. Set the Host name. You have several choices for this setting. Learn more about setting the host value in About hosts.
  3. Host only sets the host field in the resulting events. It does not direct the Splunk platform to look on a specific host on your network.

  4. Set the Index that the Splunk platform will send data to. Leave the value as "default", unless you defined multiple indexes to handle different types of events. In addition to indexes for user data, the Splunk platform has a number of utility indexes, which also appear in this drop-down list.
  5. Click Review.

Review your choices

After specifying all your input settings, review your selections. The Splunk platform lists all options you selected, including the type of monitor, the source, the source type, the application context, and the index.

  1. Review the settings.
  2. If they do not match what you want, click the left-pointing angle bracket (<) to go back to the previous step in the wizard. Otherwise, click Submit.

The Splunk platform loads the Success page and begins indexing the specified print information.

Use the inputs.conf configuration file to configure printer monitoring

You can edit the inputs.conf file to configure printer monitoring. Refer to the print monitoring configuration values and examples later in this topic.

  1. Open a shell prompt or PowerShell window.
  2. Change to the %SPLUNK_HOME%\etc\system\local directory.
  3. Use a text editor to open the inputs.conf file in this directory. You might need to create this file.
  4. Add [WinPrintMon] configuration stanzas, settings, and values to enable Windows print monitoring inputs.
  5. Save the file and close it.
  6. Restart the Splunk platform.

For information on how to edit configuration files, see About configuration files in the Admin Manual.

Print monitoring configuration values

The Splunk platform uses the following settings in inputs.conf to monitor Windows printer subsystem information:

Attribute Required? Description
type Yes The type of host information to monitor. Can be printer, job, driver, or port. The input doesn't run if this variable isn't present.
baseline No Whether or not to generate a baseline of the existing state of the printer, job, driver, or port. If you set this attribute to 1, then the Splunk platform writes a baseline. This might take additional time and CPU resources when the Splunk platform starts.
disabled No Whether or not to run the input. If you set this setting to 1, then the Splunk platform does not run the input.

Examples of Windows printer monitoring configurations

The following examples show how to use the Windows printer monitoring configuration settings in inputs.conf.

# Monitor printers on system.
[WinPrintMon://printer]
type = printer
baseline = 0

# Monitor print jobs.
[WinPrintMon://job]
type = job
baseline = 1

# Monitor printer driver installation and removal.
[WinPrintMon://driver]
type = driver
baseline = 1

# Monitor printer ports.
[WinPrintMon://port]
type = port
baseline = 1

Fields for Windows print monitoring data

When the Splunk platform indexes data from Windows print monitoring inputs, it sets the source for received events to windows. It sets the source type of the incoming events to WinPrintMon.

Last modified on 27 October, 2021
Monitor Windows host information   Monitor Windows network information

This documentation applies to the following versions of Splunk® Enterprise: 7.0.0, 7.0.1, 7.0.2, 7.0.3, 7.0.4, 7.0.5, 7.0.6, 7.0.7, 7.0.8, 7.0.9, 7.0.10, 7.0.11, 7.0.13, 7.1.0, 7.1.1, 7.1.2, 7.1.3, 7.1.4, 7.1.5, 7.1.6, 7.1.7, 7.1.8, 7.1.9, 7.1.10, 7.2.0, 7.2.1, 7.2.2, 7.2.3, 7.2.4, 7.2.5, 7.2.6, 7.2.7, 7.2.8, 7.2.9, 7.2.10, 7.3.0, 7.3.1, 7.3.2, 7.3.3, 7.3.4, 7.3.5, 7.3.6, 7.3.7, 7.3.8, 7.3.9, 8.0.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4, 8.0.5, 8.0.6, 8.0.7, 8.0.8, 8.0.9, 8.0.10, 8.1.0, 8.1.1, 8.1.3, 8.1.4, 8.1.5, 8.1.6, 8.1.7, 8.1.8, 8.1.9, 8.1.11, 8.1.13, 8.2.0, 8.2.1, 8.2.2, 8.2.3, 8.2.4, 8.2.5, 8.2.6, 8.2.7, 8.2.8, 8.2.9, 8.2.10, 8.2.11, 8.2.12, 9.0.0, 9.0.1, 9.0.2, 9.0.3, 9.0.4, 9.0.5, 9.0.6, 9.0.7, 9.0.8, 9.0.9, 9.0.10, 9.1.0, 9.1.1, 9.1.2, 9.1.3, 9.1.4, 9.1.5, 9.1.6, 9.1.7, 9.2.0, 9.2.1, 9.2.2, 9.2.3, 9.2.4, 9.3.0, 9.3.1, 9.3.2, 9.4.0, 8.1.10, 8.1.12, 8.1.14, 8.1.2


Was this topic useful?







You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters