<?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 How to add additional columns? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-add-additional-columns/m-p/607968#M25957</link>
    <description>&lt;P&gt;Hi folks,&lt;/P&gt;
&lt;P&gt;Just started using splunk lately and I'm stuck with this alert that I want to create, I've been told to add priority ( P1,P2,P3 column) and job alias from pw_job_mopping lookup be added to this alert that already exist as additional columns.&lt;/P&gt;
&lt;P&gt;Any help will be appreciated &lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2022 20:51:39 GMT</pubDate>
    <dc:creator>Miky</dc:creator>
    <dc:date>2022-08-02T20:51:39Z</dc:date>
    <item>
      <title>How to add additional columns?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-add-additional-columns/m-p/607968#M25957</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;
&lt;P&gt;Just started using splunk lately and I'm stuck with this alert that I want to create, I've been told to add priority ( P1,P2,P3 column) and job alias from pw_job_mopping lookup be added to this alert that already exist as additional columns.&lt;/P&gt;
&lt;P&gt;Any help will be appreciated &lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 20:51:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-add-additional-columns/m-p/607968#M25957</guid>
      <dc:creator>Miky</dc:creator>
      <dc:date>2022-08-02T20:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to add additional columns?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-add-additional-columns/m-p/607972#M25958</link>
      <description>&lt;P&gt;add this to your query:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;| lookup&amp;nbsp; your_lookup_file.csv&amp;nbsp;&lt;SPAN&gt;pw_job_mopping&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;this command assumes&amp;nbsp;pw_job_mopping exists in both the lookup and your query and looks up identical values to enrich with all fields in the lookup&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you only want the priority field add&lt;STRONG&gt; outputnew priority_field as priority&lt;/STRONG&gt; to the end of that line&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;This page has additional documentation on the lookup command:&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.0/SearchReference/Lookup" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.0/SearchReference/Lookup&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 20:57:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-add-additional-columns/m-p/607972#M25958</guid>
      <dc:creator>martinpu</dc:creator>
      <dc:date>2022-08-02T20:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to add additional columns?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-add-additional-columns/m-p/608013#M25961</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;your request is just a little vague, could your share your search and the fields of your lookup?&lt;/P&gt;&lt;P&gt;Anyway,&amp;nbsp;If in the lookup you have at least two columns: one is the "priority" and one is the "job", you could create something like&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/163010"&gt;@martinpu&lt;/a&gt;&amp;nbsp; hinted:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your_search
| lookup pw_job_mopping.csv job OUTPUT priority
| table _time job priority&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 07:00:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-add-additional-columns/m-p/608013#M25961</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-08-03T07:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to add additional columns?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-add-additional-columns/m-p/608093#M25965</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 18:54:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-add-additional-columns/m-p/608093#M25965</guid>
      <dc:creator>Miky</dc:creator>
      <dc:date>2022-08-03T18:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to add additional columns?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-add-additional-columns/m-p/608095#M25966</link>
      <description>&lt;PRE&gt;index=A sourcetype=B source=C&lt;BR /&gt;| rename queue as Queue&lt;BR /&gt;| lookup local=true pw_map.csv Queue&lt;BR /&gt;| where queue_disabled!="Y"&lt;BR /&gt;| eval queue_depth_threshold=mvdedup(queue_depth_threshold)&lt;BR /&gt;| eval over_threshold=if(curdepth&amp;gt;queue_depth_threshold,1,0)&lt;BR /&gt;| stats latest(curdepth) as curdepth first(curdepth) as firstCur count as event_count sum(over_threshold)&lt;BR /&gt;as over_threshold latest(avg_queue_depth) as avg_queue_depth latest(Priority) as Priority latest(Owner)&lt;BR /&gt;as queue_owner latest(queue_depth_threshold) as queue_depth_threshold latest(Team) as Team&lt;BR /&gt;latest(mt_impact) as mt_impact latest(mt_impact_desc) as mt_impact_desc latest(mt_impact_priority) as&lt;BR /&gt;mt_impact_priority latest(functional_impact) as functional_impact by Queue hostname&lt;BR /&gt;| where over_threshold&amp;gt;=3 AND curdepth&amp;gt;queue_depth_threshold&lt;BR /&gt;| eval Status=case((curdepth-firstCur)&amp;gt;0, "Queue Depth Increasing", (curdepth-firstCur)&amp;lt;0, "Queue Depth&lt;BR /&gt;Decreasing", (curdepth-firstCur)=0, "Queue Depth Stagnant")&lt;BR /&gt;| where Status!="Queue Depth Decreasing"&lt;BR /&gt;&lt;SPAN&gt;| lookup local=true pw_map.csv Queue&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you add that lookup to the end, does that solve your issue?&lt;BR /&gt;&lt;BR /&gt;It matches Queue from lookup to Queue from results and outputs all fields from the lookup&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 14:25:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-add-additional-columns/m-p/608095#M25966</guid>
      <dc:creator>martinpu</dc:creator>
      <dc:date>2022-08-03T14:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to add additional columns?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-add-additional-columns/m-p/608100#M25967</link>
      <description>&lt;P&gt;It gives Error in lookup command: can not find the source field 'job' in the lookup table 'pw_job_map.csv.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 14:43:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-add-additional-columns/m-p/608100#M25967</guid>
      <dc:creator>Miky</dc:creator>
      <dc:date>2022-08-03T14:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to add additional columns?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-add-additional-columns/m-p/608102#M25968</link>
      <description>&lt;P&gt;Are there any fields in your lookup that match a field in the result table?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 14:48:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-add-additional-columns/m-p/608102#M25968</guid>
      <dc:creator>martinpu</dc:creator>
      <dc:date>2022-08-03T14:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to add additional columns?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-add-additional-columns/m-p/608168#M25975</link>
      <description>&lt;P&gt;&lt;SPAN&gt;gcusello it works, the problem is that I'm getting only priority1 not priority2 and priority3.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Just to be specific, under priority field I have 1,2,and3, but I'm getting only priority1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 19:28:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-add-additional-columns/m-p/608168#M25975</guid>
      <dc:creator>Miky</dc:creator>
      <dc:date>2022-08-03T19:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to add additional columns?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-add-additional-columns/m-p/609258#M26006</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/248218"&gt;@Miky&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 07:05:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-add-additional-columns/m-p/609258#M26006</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-08-12T07:05:40Z</dc:date>
    </item>
  </channel>
</rss>

