<?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: Search for certain adjacent events in IIS log in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-for-certain-adjacent-events-in-IIS-log/m-p/611684#M212658</link>
    <description>&lt;P&gt;Perhaps the _cs_User_Agent field is null, which would lead to the &lt;FONT face="courier new,courier"&gt;map&lt;/FONT&gt; command trying to search for "cs_User_Agent=".&amp;nbsp; Try putting quotes around $useragent$.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Sep 2022 20:39:28 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-09-01T20:39:28Z</dc:date>
    <item>
      <title>Search for certain adjacent events in IIS log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-certain-adjacent-events-in-IIS-log/m-p/611673#M212655</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been asked to provide log data for a specific form that has been accessed over a certain time period. As the data are going to leave our organization, I want to filter it down to only the relevant data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for events in which a certain html form has been accessed. I want to display events shortly before and after, that show the same user agent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attempted a few things, but in the latest query I attempted to utilize the map function. I'm not sure why I receive the error "Error in 'map': Did not find value for required attribute 'useragent'. "&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=iis_logs [search "https://example.com/form.html" 
| eval start=_time-15 
| eval stop=_time+30 
| eval useragent=_cs_User_Agent 
| map search="search  index=* cs_User_Agent=$useragent$ earliest=$start$ latest=$stop$"]&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Edit: When I, for example, put cs_User_Agent=*Mozilla*, there are results surrounding the relevant events. But that is not the data I am looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 20:53:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-certain-adjacent-events-in-IIS-log/m-p/611673#M212655</guid>
      <dc:creator>seekay</dc:creator>
      <dc:date>2022-09-01T20:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Search for certain adjacent events in IIS log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-certain-adjacent-events-in-IIS-log/m-p/611684#M212658</link>
      <description>&lt;P&gt;Perhaps the _cs_User_Agent field is null, which would lead to the &lt;FONT face="courier new,courier"&gt;map&lt;/FONT&gt; command trying to search for "cs_User_Agent=".&amp;nbsp; Try putting quotes around $useragent$.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 20:39:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-certain-adjacent-events-in-IIS-log/m-p/611684#M212658</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-09-01T20:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Search for certain adjacent events in IIS log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-certain-adjacent-events-in-IIS-log/m-p/611685#M212659</link>
      <description>&lt;P&gt;Thank you for your response, I tried that, but the error remains the same.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 20:51:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-certain-adjacent-events-in-IIS-log/m-p/611685#M212659</guid>
      <dc:creator>seekay</dc:creator>
      <dc:date>2022-09-01T20:51:23Z</dc:date>
    </item>
  </channel>
</rss>

