<?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: Using Cisco ACS command logging, find one line then a related line in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Using-Cisco-ACS-command-logging-find-one-line-then-a-related/m-p/162899#M33029</link>
    <description>&lt;P&gt;Thanks! That got me much closer. My reference material didn't indicate that I could specify a variable within the startswith and endswith command, much last AND two conditions. &lt;/P&gt;

&lt;P&gt;That gives rise to even more questions.&lt;/P&gt;

&lt;P&gt;How do I remove any transaction that contains CmdAV=shutdown? That is, a shutdown command was run before the no shutdown (CmdAV=no CmdArgAV=shutdown). &lt;/P&gt;

&lt;P&gt;In a table, how do a show all values for a repeated variable? The interface command looks like this: CmdAV=interface CmdArgAV=Gigabit CmdArgAV=2/1. Repeating CmdArgAV in the table command does not give me all the arguments. &lt;/P&gt;</description>
    <pubDate>Fri, 24 Apr 2015 17:38:18 GMT</pubDate>
    <dc:creator>splunkmduser</dc:creator>
    <dc:date>2015-04-24T17:38:18Z</dc:date>
    <item>
      <title>Using Cisco ACS command logging, find one line then a related line</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-Cisco-ACS-command-logging-find-one-line-then-a-related/m-p/162897#M33027</link>
      <description>&lt;P&gt;Cisco ACS logging find CmdAV=interface and then next successful command from same user with CmdAV=no CmdArgAV=shutdown CmgArgAV=. I've been using transaction, but don't seem to be able to figure out quite how to go about find this information.&lt;/P&gt;

&lt;P&gt;Ultimately, I am trying to find out when a no shutdown command on an interface is successfully run - but I need to know the interface it was run on.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2015 16:29:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-Cisco-ACS-command-logging-find-one-line-then-a-related/m-p/162897#M33027</guid>
      <dc:creator>splunkmduser</dc:creator>
      <dc:date>2015-04-22T16:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using Cisco ACS command logging, find one line then a related line</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-Cisco-ACS-command-logging-find-one-line-then-a-related/m-p/162898#M33028</link>
      <description>&lt;P&gt;splunkmduser,&lt;/P&gt;

&lt;P&gt;I'm just guessing at an answer here, but perhaps this guess will either get you where you need to be or might at least help clarify the situation.&lt;/P&gt;

&lt;P&gt;First, you have to make sure "interface" is an output field already.  If it isn't already available, that's a different task to identify and output that (not terribly hard, but needs more info than what's given).&lt;/P&gt;

&lt;P&gt;As long as you have that as an output field already, a possible transaction command may be something using the startswith= and endswith= parameters sort of like so:  &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;mysearchhere | transaction startswith="CmdAv=interface" endswith="CmdAV=no AND CmdArgAV=shutdown AND CmdArgAv=." by user&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Then, once you have the transaction set up - you could probably just pipe it to a table to make it pretty: &lt;CODE&gt;| table _time, user, CmdArgV, interface&lt;/CODE&gt; or something similar.  &lt;/P&gt;

&lt;P&gt;See if that doesn't get you started!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 20:10:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-Cisco-ACS-command-logging-find-one-line-then-a-related/m-p/162898#M33028</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2015-04-23T20:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using Cisco ACS command logging, find one line then a related line</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-Cisco-ACS-command-logging-find-one-line-then-a-related/m-p/162899#M33029</link>
      <description>&lt;P&gt;Thanks! That got me much closer. My reference material didn't indicate that I could specify a variable within the startswith and endswith command, much last AND two conditions. &lt;/P&gt;

&lt;P&gt;That gives rise to even more questions.&lt;/P&gt;

&lt;P&gt;How do I remove any transaction that contains CmdAV=shutdown? That is, a shutdown command was run before the no shutdown (CmdAV=no CmdArgAV=shutdown). &lt;/P&gt;

&lt;P&gt;In a table, how do a show all values for a repeated variable? The interface command looks like this: CmdAV=interface CmdArgAV=Gigabit CmdArgAV=2/1. Repeating CmdArgAV in the table command does not give me all the arguments. &lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2015 17:38:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-Cisco-ACS-command-logging-find-one-line-then-a-related/m-p/162899#M33029</guid>
      <dc:creator>splunkmduser</dc:creator>
      <dc:date>2015-04-24T17:38:18Z</dc:date>
    </item>
  </channel>
</rss>

