Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7747069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:26:20+00:00 2026-06-01T10:26:20+00:00

I am using Splunk to parse IIS logfiles from a few servers, all the

  • 0

I am using Splunk to parse IIS logfiles from a few servers, all the servers have same fields setup in IIS and all servers running same version of windows 2003 server. However splunk tag the sourcetype of those logfile to “iis” or “iis-2” or “iis-3″… even from same server. I don’t seem to be able to find the pattern. How to make sure splunk tag all logfile same type?

another question is that for some logfiles, splunk automatically extract all the key/value in the querystring fields, while doesn’t for some logfiles… I’d like to have splunk to parse out the querystring key/value at the index time so it will be quick during search time.

anyone help?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T10:26:21+00:00Added an answer on June 1, 2026 at 10:26 am

    IIS logs are very easy to splunk, but you need to tell it what format the logs are in (since you can alter the log format). Here is an example for you.

    In inputs.conf ($SPLUNK_HOME\etc\system\local\inputs.conf), add a stanza like this:

    [monitor://C:\inetpub\logs\LogFiles\W3SVC1\*.log]
    sourcetype=MSWindows:2008R2:IIS
    queue=parsingQueue
    index=msexchange
    disabled=false
    

    In props.conf ($SPLUNK_HOME\etc\system\local\props.conf), add a stanza like this:

    [MSWindows:2008R2:IIS]
    TZ = GMT
    SHOULD_LINEMERGE = false
    CHECK_FOR_HEADER = false
    REPORT-fields = mswin_2008r2_iis_fields
    TRANSFORMS-comments = ignore_comments
    

    Finally, we need to define the two transforms in transforms.conf (which is in $SPLUNK_HOME\etc\system\local\transforms.conf) as follows:

    [ignore_comments]
    REGEX = ^#.*
    DEST_KEY = queue
    FORMAT = nullQueue
    
    [mswin_2008r2_iis_fields]
    FIELDS = "date","time","s_ip","cs_method","cs_uri_stem","cs_uri_query","s_port","cs_username","c_ip","cs_user_agent","sc_status","sc_substatus","sc_win32_status","time_taken"
    DELIMS = " "
    

    The format of the mswin_2008r2_iis_fields is taken from the top of the IIS log file. This is (hopefully obviously) for the default IIS logs from Windows Server 2008 R2. The location and format have changed from version to version, plus you can alter both the location and format on a per-host basis.

    For more information on these configuration files, see the documentation – freely available at http://docs.splunk.com

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using online interfaces to a version control system is a nice way to have
Using Java, how can I extract all the links from a given web page?
Using C# for ASP.NET and MOSS development, we often have to embed JavaScript into
Using android 2.3.3, I have a background Service which has a socket connection. There's
I have been using a product which displays parsed XML files as HTML. It
I'm trying to call the text to speech API from Python using win32com.client. The
Using mercurial, I've run into an odd problem where a line from one committer
Using MVC2 I have an AJAX form which is posting to a bound model.
using a binary search tree I need to add to a vector all int
Using php/html, I want to retrieve email addresses (plus other information) from MySQL and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.