<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Searching for &amp;quot;-&amp;quot; in IIS logs? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Searching-for-quot-quot-in-IIS-logs/m-p/678137#M231912</link>
    <description>&lt;P&gt;To be precise, I didn't suggest using evals. This eval is already defined within the TA and it's the reason why the field is empty.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Feb 2024 21:19:18 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2024-02-20T21:19:18Z</dc:date>
    <item>
      <title>Searching for "-" in IIS logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-for-quot-quot-in-IIS-logs/m-p/677812#M231770</link>
      <description>&lt;P&gt;In Microsoft IIS logs, when a field is empty, a dash ( - ) is used instead of leaving the value blank.&amp;nbsp; Presumably this is because IIS logs are space delimited, so otherwise it would just have three consecutive spaces which might be ignored.&amp;nbsp; However, even though there is something in the field, I can't search for something like&amp;nbsp;cs_username="-" and get any results.&amp;nbsp; Is this something Splunk is doing, where it is treating the dash as a NULL?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dashboard where I track HTTP errors by cs_username, but when the username is not present, I can't drill down on the dash, I can only drill down on actual username values.&amp;nbsp; Is there a way to make the dash an active, drillable value?&amp;nbsp; I tried this&amp;nbsp;but it didn't work:&lt;/P&gt;&lt;P&gt;| fillnull value="-" cs_username&lt;/P&gt;&lt;P&gt;How can I search the cs_username field when the value is a dash?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 15:14:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-for-quot-quot-in-IIS-logs/m-p/677812#M231770</guid>
      <dc:creator>DaClyde</dc:creator>
      <dc:date>2024-02-16T15:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Searching for "-" in IIS logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-for-quot-quot-in-IIS-logs/m-p/677825#M231774</link>
      <description>&lt;P&gt;It is deliberately set this way by the IIS TA.&lt;/P&gt;&lt;PRE&gt;EVAL-user = if(cs_username == "-", null(), cs_username)&lt;/PRE&gt;&lt;P&gt;So it's not that Splunk doesn't find it, it's just that the field is set to empty value when there is nothing there.&lt;/P&gt;&lt;P&gt;Looking for&lt;/P&gt;&lt;PRE&gt;cs_username!=*&lt;/PRE&gt;&lt;P&gt;or&lt;/P&gt;&lt;PRE&gt;NOT cs_username=*&lt;/PRE&gt;&lt;P&gt;(these are not equivalent in general but in this case both can be used)&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 16:47:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-for-quot-quot-in-IIS-logs/m-p/677825#M231774</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-02-16T16:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Searching for "-" in IIS logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-for-quot-quot-in-IIS-logs/m-p/677834#M231779</link>
      <description>&lt;P&gt;As &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt; replied, you can avoid this just by using the EVAL or applying filters to look for everything different from null or blank.&lt;/P&gt;&lt;P&gt;You can also, create a field extraction using Regex to avoid situations like this, for example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=_raw cs_username="(?&amp;lt;cs_username&amp;gt;.+?)\"\s&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://regex101.com/r/f6booK/1" target="_blank"&gt;https://regex101.com/r/f6booK/1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 17:39:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-for-quot-quot-in-IIS-logs/m-p/677834#M231779</guid>
      <dc:creator>rafamss</dc:creator>
      <dc:date>2024-02-16T17:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Searching for "-" in IIS logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-for-quot-quot-in-IIS-logs/m-p/678100#M231896</link>
      <description>&lt;P&gt;I will try both approaches today and see what happens.&amp;nbsp; Thanks for the suggestions!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 15:47:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-for-quot-quot-in-IIS-logs/m-p/678100#M231896</guid>
      <dc:creator>DaClyde</dc:creator>
      <dc:date>2024-02-20T15:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Searching for "-" in IIS logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-for-quot-quot-in-IIS-logs/m-p/678137#M231912</link>
      <description>&lt;P&gt;To be precise, I didn't suggest using evals. This eval is already defined within the TA and it's the reason why the field is empty.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 21:19:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-for-quot-quot-in-IIS-logs/m-p/678137#M231912</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-02-20T21:19:18Z</dc:date>
    </item>
  </channel>
</rss>

